| Routine | Description |
|---|
| accept | Accepts a connection request queued for a listening socket. |
| bind | Assigns a name (local address) to a socket. |
| closesocket | Closes an existing socket and releases a socket descriptor. |
| connect | Establishes connection between the endpoints on stream sockets. |
| gethostbyname | Retrieves host address corresponding to a host name from a host database. |
| getpeername | Retrieves the address of the peer to which a socket is connected. |
| getsockname | Retrieves the local address of the socket. |
| ioctlsocket | Sets or retrieves some of the operating parameters on a socket. |
| listen | Sets the socket in a listen mode. |
| recv | Receives incoming data that has been queued for a socket. |
| recvfrom | Receives incoming data on a datagram socket. |
| send | Sends outgoing data on a socket. |
| sendto | Sends outgoing data on a datagram socket to destination address. |
| socket | Creates a communication socket. |