|
|
@ -174,7 +174,7 @@ mod test { |
|
|
|
|
|
|
|
let mut server = LoginServerState::new(TestData {});
|
|
|
|
|
|
|
|
let send = server.handle(1, &RecvLoginPacket::Login(Login {
|
|
|
|
let send = server.handle(ClientId(1), &RecvLoginPacket::Login(Login {
|
|
|
|
flag: 0,
|
|
|
|
tag: 65536,
|
|
|
|
guildcard: 0,
|
|
|
@ -194,7 +194,7 @@ mod test { |
|
|
|
|
|
|
|
})).collect::<Vec<_>>();
|
|
|
|
assert!(send == vec![
|
|
|
|
(1, SendLoginPacket::LoginResponse(LoginResponse {
|
|
|
|
(ClientId(1), SendLoginPacket::LoginResponse(LoginResponse {
|
|
|
|
flag: 0,
|
|
|
|
status: AccountStatus::Ok,
|
|
|
|
tag: 65536,
|
|
|
@ -204,7 +204,7 @@ mod test { |
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
|
|
|
caps: 258
|
|
|
|
})),
|
|
|
|
(1, SendLoginPacket::RedirectClient(RedirectClient {
|
|
|
|
(ClientId(1), SendLoginPacket::RedirectClient(RedirectClient {
|
|
|
|
flag: 0,
|
|
|
|
ip: 16777343,
|
|
|
|
port: 12001,
|
|
|
|