#include <ConnectionEventGenerator.h>
Inheritance diagram for GNE::ConnectionEventGenerator:
Public Types | |
typedef SmartPtr< ConnectionEventGenerator > | sptr |
typedef WeakPtr< ConnectionEventGenerator > | wptr |
Public Member Functions | |
void | reg (NLsocket socket, const SmartPtr< ReceiveEventListener > &listener) |
Register a socket to recieve events generated by this class. | |
void | unreg (NLsocket socket) |
Removes a socket. | |
void | shutDown () |
Tells the event generator to shutdown. | |
Static Public Member Functions | |
sptr | create () |
Creates a new instance of a ConnectionEventGenerator managed by a SmartPtr. | |
Protected Member Functions | |
void | run () |
|
Register a socket to recieve events generated by this class. If the socket is already registered then this method has no effect (even if the registered listener is NOT the one passed!)
|
|
Implements GNE::Thread. |
|
Tells the event generator to shutdown. This function is called internally on library cleanup, so you should not call it. Reimplemented from GNE::Thread. |
|
Removes a socket. If the socket is not registered, then no action takes place. This method will not block to wait for the unregistration to take place.
|