C
Description
The bind function assigns a name to an unnamed socket. The name represents the local address of the communication endpoint. For sockets of type SOCK_STREAM, the name of the remote endpoint is assigned when a connect or accept function is executed.
Preconditions
socket function should be called.
Parameters
Returns
If bind is successful, a value of 0 is returned. A return value of SOCKET_ERROR indicates an error.
Remarks
None.