reconnectlogininfo.h
来自「天之炼狱1服务器端源文件游戏服务端不完整」· C头文件 代码 · 共 86 行
H
86 行
//----------------------------------------------------------------------//// Filename : ReconnectLoginInfo.h// Written by : reiot@ewestsoft.com// Description : ////----------------------------------------------------------------------#ifndef __RECONNECT_LOGIN_INFO_H__#define __RECONNECT_LOGIN_INFO_H__// include files#include "Types.h"#include "Exception.h"#include "Timeval.h"#include "StringStream.h"//----------------------------------------------------------------------//// class ReconnectLoginInfo;//// 辑滚埃 捞悼俊辑 沥寸茄 楷搬俊 措茄 沥焊甫 唱鸥郴绰 按眉////----------------------------------------------------------------------class ReconnectLoginInfo {public : // constructor ReconnectLoginInfo () throw () : m_Key(0) { m_ExpireTime.tv_sec = 0; m_ExpireTime.tv_usec = 0; } // destructor ~ReconnectLoginInfo () throw () {} // get/set client ip string getClientIP () const throw () { return m_ClientIP; } void setClientIP ( const string & clientIP ) throw () { m_ClientIP = clientIP; } // get/set PlayerID string getPlayerID() const throw() { return m_PlayerID; } void setPlayerID( const string & PlayerID ) throw() { m_PlayerID = PlayerID; } // get/set expire time Timeval getExpireTime () const throw () { return m_ExpireTime; } void setExpireTime ( Timeval tv ) throw () { m_ExpireTime = tv; } // get/set validation key DWORD getKey () const throw () { return m_Key; } void setKey ( DWORD key ) throw () { m_Key = key; } // get debug string string toString () const throw () { StringStream msg; msg << "ReconnectLoginInfo(ClientIP:" << m_ClientIP << ",ExpireTime:" << m_ExpireTime.tv_sec << "." << m_ExpireTime.tv_usec << ",KEY: " << m_Key << ")"; return msg.toString(); }private : // valid client's ip string m_ClientIP; // PlayerID string m_PlayerID; // expire time : 攫力鳖瘤 捞 沥焊甫 蜡瘤窍绊 乐绢具 窍绰瘤.. Timeval m_ExpireTime; // validation key DWORD m_Key;};//----------------------------------------------------------------------//// CompareReconnectLoginInfo//// priority_queue 俊辑 ReconnectLoginInfo 尝府 厚背且 锭 荤侩窍绰 努贰胶
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?