nsIDOMTCPServerSocket
An interface to a server socket that can accept incoming connections for gaia apps.
Close the server socket.
The port of this server socket object.
The onconnect event handler is called when a client connection is accepted.
The data attribute of the event passed to the onconnect handler will be a TCPSocket
instance, which is used for communication between client and server.
The onerror handler will be called when the listen of a server socket is aborted.
The data attribute of the event passed to the onerror handler will have a
description of the kind of error.