int bind(int s, const struct sockaddr *name, socklen_t namelen);
Specifies the integer descriptor of the unbounded socket.
Points to a sockaddr structure containing the address to be bound to the socket. The length and format of the address depend on the address family of the socket.
Specifies the length of name in bytes.
For sockets in the AF_UNIX address family, the specified address does not specify a disk file local to the machine.
For sockets in the AF_UNIX address family, a component of the path prefix denies search permission, or the requested name requires writing in a directory with a mode that denies write permission.
The specified address is already in use. [See the SO_REUSEADDR socket option under
The protocol used in the creation of specified socket does not support the specified address family.
s is not a valid descriptor.
name is an invalid pointer or the namelen parameter is too small (less than the size of a struct sockaddr).
The socket is already bound to an address.
The Windows sockets implementation has detected that the network subsystem has failed.
Not enough buffers are available; there are too many connections.
The descriptor is not a socket.
UNIX98, with exceptions.
The NuTCRACKER Platform supports all
the address families that WinSock 2.0 supports.
Sockets from the AF_UNIX address family are bound to file system
objects. The NuTCRACKER Platform requires that the paths be local to
the system on which
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
PTC MKS Toolkit 10.2 Documentation Build 28.