Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CNetClientSession Class Reference

The client end of a network session. More...

#include <NetSession.h>

Inheritance diagram for CNetClientSession:
INetSession

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...
 
CNetFileTransfererGetFileTransferer ()
 
- Public Member Functions inherited from INetSession
virtual ~INetSession ()
 

Private Member Functions

 NONCOPYABLE (CNetClientSession)
 

Private Attributes

CNetClientm_Client
 
CNetFileTransferer m_FileTransferer
 
ENetHostm_Host
 
ENetPeerm_Server
 
CNetStatsTablem_Stats
 

Detailed Description

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.

Constructor & Destructor Documentation

CNetClientSession::CNetClientSession ( CNetClient client)

Definition at line 30 of file NetSession.cpp.

CNetClientSession::~CNetClientSession ( )

Definition at line 35 of file NetSession.cpp.

Member Function Documentation

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.

CNetFileTransferer& CNetClientSession::GetFileTransferer ( )
inline

Definition at line 86 of file NetSession.h.

CNetClientSession::NONCOPYABLE ( CNetClientSession  )
private
void CNetClientSession::Poll ( )

Process queued incoming messages.

Definition at line 95 of file NetSession.cpp.

bool CNetClientSession::SendMessage ( const CNetMessage message)
virtual

Send a message to the server.

Implements INetSession.

Definition at line 164 of file NetSession.cpp.

Member Data Documentation

CNetClient& CNetClientSession::m_Client
private

Definition at line 89 of file NetSession.h.

CNetFileTransferer CNetClientSession::m_FileTransferer
private

Definition at line 91 of file NetSession.h.

ENetHost* CNetClientSession::m_Host
private

Definition at line 93 of file NetSession.h.

ENetPeer* CNetClientSession::m_Server
private

Definition at line 94 of file NetSession.h.

CNetStatsTable* CNetClientSession::m_Stats
private

Definition at line 95 of file NetSession.h.


The documentation for this class was generated from the following files: