Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

The socket IOCTL opcodes for Winsock are summarized in the following table. More detailed information is provided in section 4 under WSPIoctl. There are other new protocol-specific IOCTL opcodes that can be found in the protocol-specific annex.

Opcode Input type Output type Description

FIONBIO

Unsigned long

<Not used>

Enables or disables nonblocking mode on the socket.

FIONREAD

<Not used>

Unsigned long

Determines the amount of data that can be read atomically from the socket.

SIO_GET_BROADCAST_ADDRESS

<Not used>

sockaddr

Retrieves the protocol-specific broadcast address to be used in WSPSendTo.

SIO_MULTIPOINT_LOOKBACK

BOOL

<Not used>

Controls whether data sent in a multipoint session will also be received by the same socket on the local host.

SIO_MULTICAST_SCOPE

int

<Not used>

Specifies the scope over which multicast transmissions will occur.

SIO_ROUTING_INTERFACE_QUERY

sockaddr

sockaddr

Obtains the address of the local interface that should be used to send to the specified address.

SIO_ROUTING_INTERFACE_CHANGE

sockaddr

<Not used>

Requests notification of changes in information reported through SIO_ROUTING_INTERFACE_QUERY for the specified address.

SIO_ADDRESS_LIST_QUERY

<Not used>

SOCKET_ADDRESS_LIST

Obtains the list of addresses to which the application can bind.

SIO_ADDRESS_LIST_CHANGE

<Not used>

<Not used>

Requests notification of changes in information reported through SIO_ADDRESS_LIST_QUERY.

See Also