|
| virtual void | openConnection (const char *destination, void *userContext=0, unsigned char connectFlags=0)=0 |
| |
| virtual void | closeConnection (long id, int error=0)=0 |
| |
| virtual void | sendData (long id, void *data, long dataLen)=0 |
| |
| virtual void | broadcastData (void *data, long datalen)=0 |
| |
| virtual void | releaseNetData (NetData *data)=0 |
| |
| virtual void | setConnectionContext (long id, void *userContext)=0 |
| |
| virtual void | setMaxIncomingPacketSize (long id, long maxLen)=0 |
| |
| virtual void | createServerPort (short portNum, void *userContext=0, unsigned char connectFlags=flag_PublicPort)=0 |
| |
| virtual void | closeServerPort (short portNum)=0 |
| |
| virtual void | idle ()=0 |
| |
| virtual void | setPublicInfo (long connectionCreator, const char *publicName)=0 |
| |
| virtual void | addIncomingPacketGatekeeper (GatekeeperFunc func, void *context)=0 |
| |
| virtual void | removeIncomingPacketGatekeeper (GatekeeperFunc func)=0 |
| |
| virtual void | waitingForNetwork ()=0 |
| |
| virtual void | doneWaitingForNetwork ()=0 |
| |
| virtual bool | isWaitingForNetwork ()=0 |
| |
| virtual void | addHandler (IEventHandler *inHandler, long inType=all_events) |
| | add a new handler for some event type, or for all events if no type specified
|
| |
| virtual void | removeHandler (IEventHandler *inHandler, long inType=all_events) |
| | Remove a handler for some event type, or for all events if no type specified.
|
| |
| virtual void | clear (bool doRelease=true) |
| | remove all handlers
|
| |
| virtual void | blockEvent (long inEventType) |
| | temporarily ignore all events of a particular type, just drop them on the floor
|
| |
| virtual void | unblockEvent (long inEventType) |
| | stop ignoring events of a particular type, no recovery of previously ignored events
|
| |
| | EventEmitter () |
| | constructor for new event emitter
|
| |
| virtual bool | postEvent (long inEventType, void *inEventData, EventEmitter *fromEmitter=0) |
| | post an event for immediate handling locally, or relay it to the EventManger
|
| |
| | Singleton () |
| |
| virtual | ~Singleton () |
| |
NetworkManager used for sending network messages and starting up connections