📄 glincomingconnectionok.h
字号:
//////////////////////////////////////////////////////////////////////// // Filename : GLIncomingConnectionOK.h // Written By : Reiot// Description : // //////////////////////////////////////////////////////////////////////#ifndef __GL_INCOMING_CONNECTION_OK_H__#define __GL_INCOMING_CONNECTION_OK_H__// include files#include "DatagramPacket.h"#include "PacketFactory.h"////////////////////////////////////////////////////////////////////////// class GLIncomingConnectionOK;////////////////////////////////////////////////////////////////////////class GLIncomingConnectionOK : public DatagramPacket {public : // Datagram 按眉俊辑何磐 单捞鸥甫 佬绢辑 菩哦阑 檬扁拳茄促. void read(Datagram & iDatagram) throw(ProtocolException, Error); // Datagram 按眉肺 菩哦狼 官捞呈府 捞固瘤甫 焊辰促. void write(Datagram & oDatagram) 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_GL_INCOMING_CONNECTION_OK; } // get packet's body size PacketSize_t getPacketSize() const throw() { return szBYTE + m_PlayerID.size() + szuint + szDWORD; } // get packet name string getPacketName() const throw() { return "GLIncomingConnectionOK"; } // get packet's debug string string toString() const throw();public : // get/set player id string getPlayerID() const throw() { return m_PlayerID; } void setPlayerID(string playerID) throw() { m_PlayerID = playerID; } // get/set tcp port uint getTCPPort() const throw() { return m_TCPPort; } void setTCPPort(uint tcpPort) throw() { m_TCPPort = tcpPort; } // get/set auth key DWORD getKey() const throw() { return m_Key; } void setKey(DWORD key) throw() { m_Key = key; }private : // 绢恫 敲饭捞绢俊霸 LCReconnect 菩哦阑 焊郴具 窍绰瘤绰 舅酒具 茄促. string m_PlayerID; // 霸烙 辑滚啊 磊脚狼 TCP 器飘甫 舅妨淋栏肺结 // 肺弊牢 辑滚绰 霸烙 辑滚狼 TCP 器飘甫 隔扼档 公规窍促. uint m_TCPPort; // 霸烙 辑滚俊辑 积己茄 牢刘 虐 DWORD m_Key;};////////////////////////////////////////////////////////////////////////// class GLIncomingConnectionOKFactory;//// Factory for GLIncomingConnectionOK////////////////////////////////////////////////////////////////////////class GLIncomingConnectionOKFactory : public PacketFactory {public : // create packet Packet* createPacket() throw() { return new GLIncomingConnectionOK(); } // get packet name string getPacketName() const throw() { return "GLIncomingConnectionOK"; } // get packet id PacketID_t getPacketID() const throw() { return Packet::PACKET_GL_INCOMING_CONNECTION_OK; } // get packet's max body size // *OPTIMIZATION HINT* // const static GLIncomingConnectionOKPacketMaxSize 甫 沥狼, 府畔窍扼. PacketSize_t getPacketMaxSize() const throw() { return szBYTE + 20 + szuint + szDWORD; }};////////////////////////////////////////////////////////////////////////// class GLIncomingConnectionOKHandler;////////////////////////////////////////////////////////////////////////class GLIncomingConnectionOKHandler { public : // execute packet's handler static void execute(GLIncomingConnectionOK* pPacket) throw(ProtocolException, Error);};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -