![]() This function associates a local address with a socket. int bind(SOCKET s,const struct sockaddr FAR* name,int namelen) Descriptor identifying an unbound socket. Access exclusive podcasts from your. #PUNTO SWITCHER WIKI FOR FREE#Address to assign to the socket from the sockaddr structure. Stitcher is the easiest way to listen, download, and discover podcasts for free across iOS, Android, Web, and more. Length of the value in the name parameter. If no error occurs, this function returns zero. If an error occurs, it returns SOCKET_ERROR, and a specific error code can be retrieved by calling WSAGetLastError. This function is used on an unconnected socket before subsequent calls to the connect (Windows Sockets) or listen function. The bind function is used to bind to either connection-oriented (stream) or connectionless (datagram) sockets. When a socket is created with a call to the socket (Windows Sockets) function, it exists in a name space (address family) but has no name assigned to it. Use the bind function to establish the local association of the socket by assigning a local name to an unnamed socket.Ī name consists of the three parts when using the Internet address family. In Winsock 2.2, th e name parameter is not strictly interpreted as a pointer to a sockaddr structure. It is cast this way for Winsock 1.1 compatibility. impregnable hussite splintered montagne double-sided biome meld watermark asymptotically punto laterite ballon voce carrefour fluidity huon piet putter. Service providers are free to regard it as a pointer to a block of memory of size namelen. The first 2 bytes in this block (corresponding to the sa_family member of the sockaddr structure) must contain the address family that was used to create the socket. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |