
common functions and constants and the header files in which they are located on the
OpenBSD and Microsoft Windows platforms.
Table 7.1 Header Files for Socket-related Functions and Constants
Name Type UNIX Header File Win32 Header File
Socket Function sys/socket.h winsock2.h
Setsockopt Function sys/socket.h winsock2.h
Ioctl Function sys/ioctl.h n/a for sockets
Ioctlsocket Function n/a winsock2.h
send, sendto Function sys/socket.h winsock2.h
Recv, recvfrom Function sys/socket.h winsock2.h
Close Function unistd.h n/a for sockets
Closesocket Function n/a winsock2.h
IPPROTO_IP Constant netinet/in.h winsock2.h
IPPROTO_ICMP Constant netinet/in.h winsock2.h
IPPROTO_UDP ...