📄 connectioninfo.h
字号:
//////////////////////////////////////////////////////////////////////////////// Filename : ConnectionInfo.h// Written by : reiot@ewestsoft.com// Description : //////////////////////////////////////////////////////////////////////////////#ifndef __CONNECTION_INFO_H__#define __CONNECTION_INFO_H__#include "Types.h"#include "Exception.h"#include "Timeval.h"//////////////////////////////////////////////////////////////////////////////// class ConnectionInfo;// 辑滚埃 捞悼俊辑 沥寸茄 楷搬俊 措茄 沥焊甫 唱鸥郴绰 按眉//////////////////////////////////////////////////////////////////////////////class ConnectionInfo {public: ConnectionInfo() throw(); ~ConnectionInfo() throw();public: string getClientIP() const throw() { return m_ClientIP; } void setClientIP(const string & clientIP) throw() { m_ClientIP = clientIP; } string getPlayerID() const throw() { return m_PlayerID; } void setPlayerID(const string & PlayerID) throw() { m_PlayerID = PlayerID; } string getPCName() const throw() { return m_PCName; } void setPCName(const string & name) throw() { m_PCName = name; } Timeval getExpireTime() const throw() { return m_ExpireTime; } void setExpireTime(Timeval tv) throw() { m_ExpireTime = tv; } DWORD getKey() const throw() { return m_Key; } void setKey(DWORD key) throw() { m_Key = key; } string toString() const throw();private: string m_ClientIP; // valid client's ip string m_PlayerID; // PlayerID string m_PCName; // PC name Timeval m_ExpireTime; // expire time : 攫力鳖瘤 捞 沥焊甫 蜡瘤窍绊 乐绢具 窍绰瘤.. DWORD m_Key; // validation key};//////////////////////////////////////////////////////////////////////////////// CompareConnectionInfo//// priority_queue 俊辑 ConnectionInfo 尝府 厚背且 锭 荤侩窍绰 努贰胶
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -