Windows Sockets Common Function Sketch

xiaoxiao2021-03-06  41

Windows Sockets Common Function Sketch

The Windows Sockets specification contains the following Berkeley style socket routines: * indicates that the routine is blocked when it is applied to the blocking socket. Accept () * Responds to the coupling request and build a set of interfaces. The original socket returns to the listening status. Bind () bundles a local name and an unnamed socket. CloseSocket () * Cancel the socket from the owner's object reference table. This function is only blocked when SO_LINGER is set. Connect () * is initialized to a connection on a specified socket. GetPeerName () gets the name of the peer-to-peer communication party connected to the specified socket. GetSockName () gets the current name on the specified set of interfaces. GetSockOpt () gets the property option related to the specified socket interface. HTONL () transitions 32-bit numbers to the host byte order to the network byte order. Htons () transitions 16-bit numbers to the host byte sequence to the network byte order. Inet_addr () converts an Internet standard "." Mark address into an Internet address value. INT_NTOA () converts the Internet address value into a "." ASCII string. IOCTLSocket () provides control over a socket. Listen () listens to the arrival of the connection request on a specified socket. NTOHL () converts 32-bit numbers from network byte sequence to host byte sequence. NTONS () converts 16-bit numbers from network byte sequence to host byte sequence. RECV () * Receive data from a connected socket. Recvfrom () * receives data from a connected or unconnected socket. SELECT () * Performs a synchronous I / O multiplex multiplex. Send () * Sends data from a connected socket. Sendto () * Sends data from a connected or unconnected socket. Setsockopt () Sets the properties option related to the specified socket. Shutdown () Close a part of the full duplex connection. Socket () Creates a communication endpoint and returns a set of interfaces.

转载请注明原文地址:https://www.9cbs.com/read-55857.html

New Post(0)