CAsyncSocket::IOCtl

BOOL IOCtl( long lCommand, DWORD* lpArgument );

Return Value

Nonzero if the function is successful; otherwise 0, and a specific error code can be retrieved by calling GetLastError. The following errors apply to this member function:

Parameters

lCommand

The command to perform on the socket.

lpArgument

A pointer to a parameter for lCommand.

Remarks

Call this member function to control the mode of a socket. This routine can be used on any socket in any state. It is used to get or retrieve operating parameters associated with the socket, independent of the protocol and communications subsystem. The following commands are supported:

This function is a subset of ioctl() as used in Berkeley sockets. In particular, there is no command which is equivalent to FIOASYNC, while SIOCATMARK is the only socket-level command which is supported.

CAsyncSocket OverviewClass MembersHierarchy Chart

See Also   CAsyncSocket::AsyncSelect, CAsyncSocket::Create, CAsyncSocket::GetSockOpt, CAsyncSocket::SetSockOpt