Interface TCPServerSocket
access this type via: net.TCPServerSocket (provides, requires or uses)
Bind a TCP 'server' or 'master' socket. A TCPSocket can be used to accept new connections from server sockets.
Constants
char ANY_ADDRESS[]
char ANY_ADDRESS_v4[]
char ANY_ADDRESS_v6[]
Functions
bool bind(char address[], int port, optional bool reuseAddress)
void unbind()
Constants
ANY_ADDRESS Bind to any and all IP addresses of the host.
ANY_ADDRESS_v4 Bind to any and all IPv4 addresses of the host.
ANY_ADDRESS_v6 Bind to any and all IPv6 addresses of the host.
bool bind(char address[], int port, optional bool reuseAddress)
Bind a TCP 'server' or 'master' socket to a given IP address and port number. The optional parameter reuseAddress defaults to false, but if set to true the system will immediately re-use the given address and port number after a recent unbind (rather than being forced to wait e.g. for a TIME_WAIT period).
void unbind()
Unbind this socket (allowing other sockets to bind to this address/port).