IPSocket.bind

Assigns the wildcard "any" local address and optionally a port to this socket. This socket needs to have been created by socket().

Parameters

local_port ushort

local port or 0 to use the wildcard "any" port

Return Value

Type: int

0 on success or -1 on failure. On failure errno is set appropriately.

Meta