|
int | GetExtraFD (void *extra_data, struct IoExpandStruct *pFuncs) |
| Returns a file descriptor for the structure passed as the IoExpandStruct . FreeExtraFd( ) will release the fd back to the pool of available fds. More...
|
|
void * | GetExtraData (int fd) |
| Returns the extra structure value from IoExpandStruct associated with the file descriptor. More...
|
|
void | FreeExtraFd (int fd) |
| Free a file descriptor and associated resources. More...
|
|
int | GetFreeExtraFDCount () |
| Returns the number of free file descriptors. More...
|
|
The NetBurner I/O Internals Group
◆ FreeExtraFd()
void FreeExtraFd |
( |
int |
fd | ) |
|
Free a file descriptor and associated resources.
- Parameters
-
◆ GetExtraData()
void* GetExtraData |
( |
int |
fd | ) |
|
Returns the extra
structure value from IoExpandStruct
associated with the file descriptor.
- Parameters
-
- Return values
-
Value | of the extra member of the structure |
◆ GetExtraFD()
int GetExtraFD |
( |
void * |
extra_data, |
|
|
struct IoExpandStruct * |
pFuncs |
|
) |
| |
Returns a file descriptor for the structure passed as the IoExpandStruct
. FreeExtraFd( ) will release the fd back to the pool of available fds.
- Parameters
-
extra_data | The optional extra_data void pointer can be used to pass data into the file descriptor |
IoExpandStruct | Structure containing callback functions for such things as read, write, close, and the extra_data variable |
- Return values
-
Value | greater than 0, representing the file descriptor on success |
-1 | on failure |
◆ GetFreeExtraFDCount()
int GetFreeExtraFDCount |
( |
| ) |
|
Returns the number of free file descriptors.
- Return values
-
Number | of free extra file descriptors |