sockets

ioctl() requests supported by sockets 

Miscellaneous Information


SYNOPSIS

s = socket(domain, type, protocol);


DESCRIPTION

The NuTCRACKER Platform implements sockets on top of Winsock 2.0. All domains (address families), types, and protocols supported by Winsock 2.0 are supported.

Supported ioctl() Requests

FIOGETOWN  

This ioctl() request is equivalent to fcntl(filedes, F_GETOWN).

FIOSETOWN  

This ioctl() request is equivalent to fcntl(filedes, F_SETOWN, arg), respectively. The argument to the ioctl() request is a process ID or process group ID, as described for F_SETOWN under fcntl().

FIOASYNC  

This ioctl() request is equivalent to using the fcntl() command F_SETFL to set or clear the O_ASYNC flag. The argument to the ioctl() request is a variable of type unsigned long. If this variable is non-zero, the O_ASYNC flag is set, otherwise it is cleared.

FIONBIO  

This ioctl() request is equivalent to using the fcntl() command F_SETFL to set or clear the O_NONBLOCK flag. The argument to the ioctl() request is a variable of type unsigned long. If this variable is non-zero, the O_NONBLOCK flag is set, otherwise it is cleared.

FIONREAD  

This ioctl() request is used to determine the amount of data available to be read from the socket. The argument to the ioctl() request is the address of a variable of type unsigned long, which receives the number of bytes currently available to be read.

SIOCATMARK  

This ioctl() request is used to determine whether the current read position for the socket is pointing at out-of-bound data. The argument to the ioctl() request is the address of a variable of type unsigned long. If the current read pointer is at out-of-band data, this variable is set to a non-zero value. If the current read pointer is not at out-of-band data, the variable is set to zero.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
fcntl(), socket()


PTC MKS Toolkit 10.5 Documentation Build 40.