Listens for incoming TCP connections.
The port to listen on.
Optionaloptions: ServerSocketOptionsServer options.
Optionalbacklog: numberThe maximum length of the queue of pending connections.
Opens a new TCP connection.
The hostname or IP address.
The port number.
Optionaloptions: SocketOptionsConnection options.
Legacy interface for creating TCP sockets.