Winsock API Reference
The supported Winsock API functions are listed below.
WinSock BSD API |
Description |
Returns a new socket that corresponds to an established connection from the listening socket queue. |
|
Assigns a local IP address and port to an unnamed socket. |
|
Closes (removes) a socket created by function socket or returned by function accept. If a socket is connected, closesocket closes the connection first. |
|
Initiates a connection on the specified socket. For a connectionless protocol, it restricts communications to one peer, instead of establishing a connection. |
|
Frees address information dynamically allocated by function getaddrinfo. |
|
Provides protocol independent translation from hostname to an IP address. |
|
Retrieves host information corresponding to a host name from a host database. |
|
Returns an ASCII string that can be used with gethostbyname. |
|
Provides name resolution from an address to the host name. |
|
Retrieves the IP address and port of the peer connected to the specified socket. |
|
Retrieves the local IP address and port to which the specified socket is bound. |
|
Retrieves an option associated with the specified socket. |
|
Converts a 32-bit quantity from host-byte order to network-byte order. |
|
Converts a 16-bit quantity from host-byte order to network-byte order. |
|
Converts an ASCII string containing a standard dotted-decimal address to binary IPv4 address in network byte order. |
|
Converts a binary IPv4 address in network byte order to an ASCII string in standard dotted-decimal format. |
|
Converts an IPv4 or IPv6 Internet network address in network byte order to an ASCII string in Internet standard text presentation. | |
Converts an ASCII string of IPv4 or IPv6 Internet network address in its standard text presentation form into its numeric binary form in network byte order. | |
Provides I/O control for sockets. | |
Listens for incoming connections on a specified socket. |
|
Converts a 32-bit quantity from network-byte order to host-byte order. |
|
Converts a 16-bit quantity from network byte order to host byte order. |
|
Receives data from a connected or socket. |
|
Receives data from either a connected or unconnected socket, but not a TCP socket. |
|
Performs synchronous I/O multiplexing. |
|
Sends data on a connected socket. |
|
Sends data on an unconnected socket, but never on a TCP socket. |
|
Stores options associated with the specified socket. |
|
Shuts down part or all of a full-duplex connection. |
|
Creates an endpoint for communication and returns a socket descriptor. |
|
Terminates use of the RT-TCP/IP stack within an RTSS process. |
|
Checks whether a socket is included in set of socket descriptors. |
|
Gets the status for the last Winsock operation that failed. |
|
Converts a 32-bit quantity in host byte order to network byte order. | |
Converts a 16-bit quantity in host byte-ordering to network byte order. | |
Performs a protocol-specific I/O control action on the socket in any state. |
|
WSANtohl Converts a 32-bit quantity in network byte order to host byte order. | |
WSANtohs Converts a 16-bit quantity in network byte order to host byte order. | |
Sets the error code which can be retrieved by WSAGetLastError call for the current thread. |
|
Initiates the use of RT-TCP/IP by an RTSS process. |