159 #endif // NETSESSION_H
NONCOPYABLE(CNetServerSession)
Manages states, events, actions and transitions between states.
CNetFileTransferer m_FileTransferer
CNetFileTransferer & GetFileTransferer()
void DisconnectNow(u32 reason)
Sends an unreliable disconnection notification to the client.
void Poll()
Process queued incoming messages.
virtual bool SendMessage(const CNetMessage *message)
Send a message to the client.
CNetServerWorker & GetServer()
Interface for sessions to which messages can be sent.
void Disconnect(u32 reason)
Sends a disconnection notification to the client, and sends a NMT_CONNECTION_LOST message to the sess...
void SetUserName(const CStrW &name)
struct _ENetPeer ENetPeer
CNetFileTransferer m_FileTransferer
CNetClientSession(CNetClient &client)
CNetServerSession(CNetServerWorker &server, ENetPeer *peer)
CNetServerWorker & m_Server
Various declarations shared by networking code.
virtual bool SendMessage(const CNetMessage *message)
Send a message to the server.
void Flush()
Flush queued outgoing network messages.
virtual bool SendMessage(const CNetMessage *message)=0
ENet connection statistics profiler table.
The base class for all network messages exchanged within the game.
CNetFileTransferer & GetFileTransferer()
Handles transferring files between clients and servers.
NONCOPYABLE(CNetClientSession)
const CStrW & GetUserName() const
const CStr & GetGUID() const
struct _ENetHost ENetHost
void Disconnect(u32 reason)
Disconnect from the server.
The client end of a network session.
Network server worker thread.
The server's end of a network session.
bool Connect(u16 port, const CStr &server)
void SetGUID(const CStr &guid)