int nlIoctl(SOCKET_HANDLE_T fildes,long request,char *arg);
nlIoctl performs a special function on the object referred to by the open descriptor fildes.
ioctl() returns 0 on success for most requests.
On failure, ioctl() returns -1 and sets errno to indicate the error.
ARGUMENTS
fildes
descriptor
request
The request codes for particular functions.
arg
arg is a pointer to data to be used by the function or to be filled in by the function.