apIListenSocketService

  • At network\core\public\apilistensocketservice.idl .
  • Service implementing this interface is used to establish a listen socket, opening a port to accept incoming connections.
  • Sophisticated interface to run multiple listen sockets on one/more thread/s and to set the event sink to each port to accept socket independently on the transport protocol.

Methods

close

void close();

Called during shutdown of the network core. Have to close the listen socket and release resources.

init

void init(in apINetworkContext networkContext);

Called during startup of the network core with reference to the network context. This method will probably be unused by MFP implementation.

runServer

void runServer(in PRInt32 portNumber);

Listens to new connections/opens a port on a specified IP port number. The method throws an exception in case the socket cannot be binded to specified port.

 
src/hack/apilistensocketservice.txt · Last modified: 2007/02/22 17:00
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki