Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
MySocketListener Class Reference
Inheritance diagram for MySocketListener:
Inheritance graph
[legend]
Collaboration diagram for MySocketListener:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_NSISERVERSOCKETLISTENER 
MySocketListener ()
virtual ~MySocketListener ()
void onSocketAccepted (in nsIServerSocket aServ, in nsISocketTransport aTransport)
 onSocketAccepted
void onStopListening (in nsIServerSocket aServ, in nsresult aStatus)
 onStopListening

Detailed Description

Definition at line 61 of file TestServ.cpp.


Constructor & Destructor Documentation

NS_DECL_ISUPPORTS NS_DECL_NSISERVERSOCKETLISTENER MySocketListener::MySocketListener ( ) [inline]

Definition at line 67 of file TestServ.cpp.

{}
virtual MySocketListener::~MySocketListener ( ) [inline, virtual]

Definition at line 68 of file TestServ.cpp.

{}

Member Function Documentation

onSocketAccepted

This method is called when a client connection is accepted.

Parameters:
aServThe server socket.
aTransportThe connected socket transport.

onStopListening

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

Parameters:
aServThe server socket.
aStatusThe reason why the server socket stopped listening. If the server socket was manually closed, then this value will be NS_BINDING_ABORTED.

The documentation for this class was generated from the following file: