|
| 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 |
|
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 (NetDisconnectReason reason) |
| Sends a disconnection notification to the client, and sends a NMT_CONNECTION_LOST message to the session FSM. More...
|
|
void | DisconnectNow (NetDisconnectReason reason) |
| Sends an unreliable disconnection notification to the client. More...
|
|
virtual bool | SendMessage (const CNetMessage *message) |
| Send a message to the client. More...
|
|
CNetFileTransferer & | GetFileTransferer () |
|
| CFsm () |
|
virtual | ~CFsm () |
|
virtual void | Setup () |
| Constructs the state machine. More...
|
|
void | Shutdown () |
| Clear event, action and condition lists and reset state machine. More...
|
|
void | AddState (unsigned int state) |
| Adds the specified state to the internal list of states. More...
|
|
CFsmEvent * | AddEvent (unsigned int eventType) |
| Adds the specified event to the internal list of events. More...
|
|
CFsmTransition * | AddTransition (unsigned int state, unsigned int eventType, unsigned int nextState) |
| Adds a new transistion to the state machine. More...
|
|
CFsmTransition * | AddTransition (unsigned int state, unsigned int eventType, unsigned int nextState, void *pAction, void *pContext) |
| Adds a new transition to the state machine. More...
|
|
CFsmTransition * | GetTransition (unsigned int state, unsigned int eventType) const |
| Looks up the transition given the state, event and next state to transition to. More...
|
|
CFsmTransition * | GetEventTransition (unsigned int eventType) const |
|
void | SetFirstState (unsigned int firstState) |
| Sets the initial state for FSM. More...
|
|
void | SetCurrState (unsigned int state) |
| Sets the current state and update the last state to the current state. More...
|
|
unsigned int | GetCurrState () const |
|
void | SetNextState (unsigned int nextState) |
|
unsigned int | GetNextState () const |
|
const StateSet & | GetStates () const |
|
const EventMap & | GetEvents () const |
|
const TransitionList & | GetTransitions () const |
|
bool | Update (unsigned int eventType, void *pEventData) |
| Updates the FSM and retrieves next state. More...
|
|
bool | IsValidState (unsigned int state) const |
| Verifies whether the specified state is managed by the FSM. More...
|
|
bool | IsValidEvent (unsigned int eventType) const |
| Verifies whether the specified event is managed by the FSM. More...
|
|
virtual bool | IsDone () const |
| Tests whether the state machine has finished its work. More...
|
|
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: