📄 gcreconnectlogin.h
字号:
//////////////////////////////////////////////////////////////////////// // Filename : GCReconnectLogin.h // Written By : reiot@ewestsoft.com// Description : // //////////////////////////////////////////////////////////////////////#ifndef __GC_RECONNECT_LOGIN_H__#define __GC_RECONNECT_LOGIN_H__// include files#include "Packet.h"#include "PacketFactory.h"////////////////////////////////////////////////////////////////////////// class GCReconnectLogin;//// 肺弊牢 辑滚俊辑 牢刘阑 罐绊, 某腐磐甫 急琶茄 努扼捞攫飘狼 版快,// 某腐磐啊 捞傈 楷搬俊 粮犁沁带 粮阑 舅酒郴辑, 弊 粮阑 包府窍绰// 霸烙 辑滚肺 犁立加窍扼绰 菩哦捞促.////////////////////////////////////////////////////////////////////////class GCReconnectLogin : public Packet {public : // 涝仿胶飘覆(滚欺)栏肺何磐 单捞鸥甫 佬绢辑 菩哦阑 檬扁拳茄促. void read(SocketInputStream & iStream) throw(ProtocolException, Error); // 免仿胶飘覆(滚欺)栏肺 菩哦狼 官捞呈府 捞固瘤甫 焊辰促. void write(SocketOutputStream & oStream) const throw(ProtocolException, Error); // execute packet's handler void execute(Player* pPlayer) throw(ProtocolException, Error); // get packet id PacketID_t getPacketID() const throw() { return PACKET_GC_RECONNECT_LOGIN; } // get packet's body size PacketSize_t getPacketSize() const throw() { return szBYTE + m_LoginServerIP.size() // 霸烙 辑滚 酒捞乔 + szuint // 霸烙 辑滚 器飘 + szDWORD; // 牢刘 虐 } // get packet name string getPacketName() const throw() { return "GCReconnectLogin"; } // get packet's debug string string toString() const throw();public : // get/set game server's ip string getLoginServerIP() const throw() { return m_LoginServerIP; } void setLoginServerIP(const string & ip) throw() { m_LoginServerIP = ip; } // get/set game server's port uint getLoginServerPort() const throw() { return m_LoginServerPort; } void setLoginServerPort(uint port) throw() { m_LoginServerPort = port; } // get/set key DWORD getKey() const throw() { return m_Key; } void setKey(DWORD key) throw() { m_Key = key; }private : // New LoginServer's IP string m_LoginServerIP; // New LoginServer's TCP Port uint m_LoginServerPort; // authentication key DWORD m_Key;};////////////////////////////////////////////////////////////////////////// class GCReconnectLoginFactory;//// Factory for GCReconnectLogin////////////////////////////////////////////////////////////////////////class GCReconnectLoginFactory : public PacketFactory {public : // create packet Packet* createPacket() throw() { return new GCReconnectLogin(); } // get packet name string getPacketName() const throw() { return "GCReconnectLogin"; } // get packet id PacketID_t getPacketID() const throw() { return Packet::PACKET_GC_RECONNECT_LOGIN; } // get packet's max body size // *OPTIMIZATION HINT* // const static GCReconnectLoginPacketMaxSize 甫 沥狼, 府畔窍扼. PacketSize_t getPacketMaxSize() const throw() { return szBYTE + 15 // 霸烙 辑滚 酒捞乔 + szuint // 霸烙 辑滚 器飘 + szDWORD; // 牢刘 虐 }};////////////////////////////////////////////////////////////////////////// class GCReconnectLoginHandler;////////////////////////////////////////////////////////////////////////class GCReconnectLoginHandler {public : // execute packet's handler static void execute(GCReconnectLogin* pPacket, Player* pPlayer) throw(ProtocolException, Error);};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -