24#ifndef _NB_IOINTERNALS_H
25#define _NB_IOINTERNALS_H
34#define IOINTERNALS_FRAMEWORK_TAG ((unsigned int)0x10127EB6)
52typedef struct _IoFrameworkStruct
56 int extraSocketNumber;
58} __attribute__((packed)) IoFrameworkStruct;
72 int (*read)(
int fd,
char *buf,
int nbytes);
73 int (*write)(
int fd,
const char *buf,
int nbytes);
75 int (*peek)(
int fd,
char *buf);
77} __attribute__((packed));
105int GetExtraFD(
void *extra_data,
struct IoExpandStruct *pFuncs);
153void SetDataAvail(
int fd);
154void ClrDataAvail(
int fd);
156void SetWriteAvail(
int fd);
157void ClrWriteAvail(
int fd);
159void SetHaveError(
int fd);
160void ClrHaveError(
int fd);
int GetFreeExtraFDCount()
Returns the number of free file descriptors.
int GetExtraFD(void *extra_data, struct IoExpandStruct *pFuncs)
Returns a file descriptor for the structure passed as the IoExpandStruct. FreeExtraFd( ) will release...
void FreeExtraFd(int fd)
Free a file descriptor and associated resources.
void * GetExtraData(int fd)
Returns the extra structure value from IoExpandStruct associated with the file descriptor.
int GetFreeSocketCount(void)
Returns the number of free sockets.