nsIServerSocketListener

IID:836d98ec-fee2-4bde-b609-abd5e966eabd
Inherits From:nsISupports

Methods

void onSocketAccepted ( nsIServerSocket serv , nsISocketTransport transport ) void onStopListening ( nsIServerSocket serv , nsresult status )

void onSocketAccepted ( nsIServerSocket serv , nsISocketTransport transport )

This method is called when a client connection is accepted.

Arguments:
serv: The server socket.
transport: The connected socket transport.

void onStopListening ( nsIServerSocket serv , nsresult status )

This method is called when the listening socket stops for some reason. The server socket is effectively dead after this notification.

Arguments:
serv: The server socket.
status: The reason why the server socket stopped listening. If the server socket was manually closed, then this value will be NS_BINDING_ABORTED.

References

This interface is passed as an argument to the following methods:

nsIServerSocket.asyncListen

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com