|
| CNetServerSession (CNetServerWorker &server, ENetPeer *peer) |
|
CNetServerWorker & | GetServer () |
|
const CStr & | GetGUID () const |
|
void | SetGUID (const CStr &guid) |
|
const CStrW & | GetUserName () const |
|
void | SetUserName (const CStrW &name) |
|
u32 | GetHostID () const |
|
void | SetHostID (u32 id) |
|
u32 | GetIPAddress () const |
|
bool | IsLocalClient () const |
| Whether this client is running in the same process as the server. More...
|
|
u32 | GetLastReceivedTime () const |
| Number of milliseconds since the latest packet of that client was received. More...
|
|
u32 | GetMeanRTT () const |
| Average round trip time to the client. More...
|
|
void | Disconnect (u32 reason) |
| Sends a disconnection notification to the client, and sends a NMT_CONNECTION_LOST message to the session FSM. More...
|
|
void | DisconnectNow (u32 reason) |
| Sends an unreliable disconnection notification to the client. More...
|
|
void | SetLocalClient (bool isLocalClient) |
| Prevent timeouts for the client running in the same process as the server. More...
|
|
virtual bool | SendMessage (const CNetMessage *message) |
| Send a message to the client. More...
|
|
CNetFileTransferer & | GetFileTransferer () |
|
| CFsm (void) |
|
virtual | ~CFsm (void) |
|
virtual void | Setup (void) |
| Constructs the state machine. More...
|
|
void | Shutdown (void) |
| Clear event, action and condition lists and reset state machine. More...
|
|
void | AddState (unsigned int state) |
|
CFsmEvent * | AddEvent (unsigned int eventType) |
|
CFsmTransition * | AddTransition (unsigned int state, unsigned int eventType, unsigned int nextState) |
|
CFsmTransition * | AddTransition (unsigned int state, unsigned int eventType, unsigned int nextState, void *pAction, void *pContext) |
|
CFsmTransition * | GetTransition (unsigned int state, unsigned int eventType) const |
|
CFsmTransition * | GetEventTransition (unsigned int eventType) const |
|
void | SetFirstState (unsigned int firstState) |
|
void | SetCurrState (unsigned int state) |
|
unsigned int | GetCurrState (void) const |
|
void | SetNextState (unsigned int nextState) |
|
unsigned int | GetNextState (void) const |
|
const StateSet & | GetStates (void) const |
|
const EventMap & | GetEvents (void) const |
|
const TransitionList & | GetTransitions (void) const |
|
bool | Update (unsigned int eventType, void *pEventData) |
|
bool | IsValidState (unsigned int state) const |
|
bool | IsValidEvent (unsigned int eventType) const |
|
virtual bool | IsDone (void) const |
|
virtual | ~INetSession () |
|
The server's end of a network session.
Represents an abstraction of the state of the client, storing all the per-client data needed by the server.
Thread-safety: