nsITCPServerSocketChild

Interface to allow the content process server socket to reach the IPC bridge.
It is used in the server socket implementation on the child side.

Methods

listen(serverSocket, port, backlog, binaryType)

Tell the chrome process to listen on the port with the given parameters.

Parameters

serverSocket The server socket generated in the listen of nsIDOMTCPSocket on the child side.
port The port of the server socket.
backlog The maximum length the queue of pending connections may grow to.
binaryType "arraybuffer" to use UInt8 array instances or "string" to use String.

close()

Tell the chrome process to close the server socket.