Assigns a local address and optionally a port to this socket. This socket needs to have been created by socket().
local IP address
local port or 0 to use the wildcard "any" port
0 on success or -1 on failure. On failure errno is set appropriately.
Errors: as above but also sets errno to EAFNOSUPPORT if the address does not contain a valid IP address string.
See Implementation
Assigns a local address and optionally a port to this socket. This socket needs to have been created by socket().