94 const std::string &
restrict newPassword)
100 outMsg.writeStringNoLog(oldPassword, 24,
"old password");
101 outMsg.writeStringNoLog(newPassword, 24,
"new password");
105 const std::string &
restrict password,
106 const std::string &
restrict email)
const
113 outMsg.writeInt32(20,
"client version");
114 outMsg.writeString(username, 24,
"login");
115 outMsg.writeStringNoLog(password, 24,
"password");
116 outMsg.writeInt8(0x03,
"client type");
117 outMsg.writeString(
"127.0.0.1", 16,
"ip address");
118 outMsg.writeString(
"001122334455", 13,
"mac address");
119 outMsg.writeInt8(0,
"is gravity id");
124 outMsg.writeInt32(20,
"client version");
125 outMsg.writeString(username, 24,
"login");
126 outMsg.writeStringNoLog(password, 24,
"password");
127 outMsg.writeInt8(0x03,
"client type");
133 outMsg.writeString(username, 24,
"login");
134 outMsg.writeStringNoLog(password, 24,
"password");
135 outMsg.writeInt8(0x03,
"client type");
136 outMsg.writeString(email, 40,
"email");
149 outMsg.writeInt32(0,
"unused");
150 outMsg.writeInt32(0,
"unused");
151 outMsg.writeInt32(0,
"unused");
152 outMsg.writeInt32(0,
"unused");
159 outMsg.writeInt32(0,
"unused");
160 outMsg.writeInt32(0,
"unused");
161 outMsg.writeInt32(0,
"unused");
162 outMsg.writeInt32(0,
"unused");
163 outMsg.writeInt32(0,
"unused");
164 outMsg.writeInt32(0,
"unused");
173 const std::string &code)
const
181 outMsg.writeInt16(14,
"len");
182 outMsg.writeBeingId(accountId,
"account id");
183 outMsg.writeStringNoLog(code, 6,
"code");
195 outMsg.writeStringNoLog(code, 9,
"code");
void setState(const StateT state)
void sendOtpCode(const std::string &code) const
void updatePacketVersion() const
ServerInfo * getCharServer() const
void sendLoginRegister(const std::string &username, const std::string &password, const std::string &email) const
void sendMobileCode(const BeingId accountId, const std::string &code) const
void changePassword(const std::string &oldPassword, const std::string &newPassword) const
static Network * mInstance
bool connect(const ServerInfo &server)
virtual void flushSend() const =0
const ServerInfo & getServer() const
virtual bool haveServerVersion() const =0
#define CLIENT_PROTOCOL_VERSION
Net::GeneralHandler * generalHandler
Net::LoginHandler * loginHandler
#define createOutPacket(name)
ServerTypeT getNetworkType()
Net::ServerFeatures * serverFeatures