Socket Information and Control

Summary

SOCKET CONTROL

Socket attributes affect the way sockets operate. ioctlsocket() is the main WinSock function used to set and get socket attributes. This function accepts any one of three commands – FIONBIO, FIONREAD, and SIOCATMARK.

SOCKET OPTIONS

setsockopt() and getsockopt() are used to managed socket options. These options are discussed below: