bind

#include <wsvv.h>

int PASCAL FAR bind(s, name, namelen)
SOCKET s; /* unbound socket to associate */
const struct sockaddr FAR * name; /* address structure assigned to socket */
int
namelen; /* length of address structure */

Associate a local address with a socket.

Addendum

The bind function associates a protocol ID with a socket using the modified sockaddr structure.

An application must call the bind function before it calls the listen function.

See Also

connect, listen, getsockname, setsockopt, socket, WSACancelBlockingCall