|
Pyrogenesis
13997
|
The client end of a network session. More...
#include <NetSession.h>
Public Member Functions | |
| CNetClientSession (CNetClient &client) | |
| ~CNetClientSession () | |
| bool | Connect (u16 port, const CStr &server) |
| void | Poll () |
| Process queued incoming messages. More... | |
| void | Flush () |
| Flush queued outgoing network messages. More... | |
| void | Disconnect (u32 reason) |
| Disconnect from the server. More... | |
| virtual bool | SendMessage (const CNetMessage *message) |
| Send a message to the server. More... | |
| CNetFileTransferer & | GetFileTransferer () |
Public Member Functions inherited from INetSession | |
| virtual | ~INetSession () |
Private Member Functions | |
| NONCOPYABLE (CNetClientSession) | |
Private Attributes | |
| CNetClient & | m_Client |
| CNetFileTransferer | m_FileTransferer |
| ENetHost * | m_Host |
| ENetPeer * | m_Server |
| CNetStatsTable * | m_Stats |
The client end of a network session.
Provides an abstraction of the network interface, allowing communication with the server.
Definition at line 55 of file NetSession.h.
| CNetClientSession::CNetClientSession | ( | CNetClient & | client | ) |
Definition at line 30 of file NetSession.cpp.
| CNetClientSession::~CNetClientSession | ( | ) |
Definition at line 35 of file NetSession.cpp.
| bool CNetClientSession::Connect | ( | u16 | port, |
| const CStr & | server | ||
| ) |
Definition at line 50 of file NetSession.cpp.
| void CNetClientSession::Disconnect | ( | u32 | reason | ) |
Disconnect from the server.
Sends a disconnection notification to the server.
Definition at line 81 of file NetSession.cpp.
| void CNetClientSession::Flush | ( | ) |
Flush queued outgoing network messages.
Definition at line 155 of file NetSession.cpp.
|
inline |
Definition at line 86 of file NetSession.h.
|
private |
| void CNetClientSession::Poll | ( | ) |
Process queued incoming messages.
Definition at line 95 of file NetSession.cpp.
|
virtual |
Send a message to the server.
Implements INetSession.
Definition at line 164 of file NetSession.cpp.
|
private |
Definition at line 89 of file NetSession.h.
|
private |
Definition at line 91 of file NetSession.h.
|
private |
Definition at line 93 of file NetSession.h.
|
private |
Definition at line 94 of file NetSession.h.
|
private |
Definition at line 95 of file NetSession.h.
1.8.5