| 485 | |
| 486 | |
| 487 | int cProtocol132::ParseHandshake(void) |
| 488 | { |
| 489 | HANDLE_PACKET_READ(ReadByte, Byte, ProtocolVersion); |
| 490 | HANDLE_PACKET_READ(ReadBEUTF16String16, AString, Username); |
| 491 | HANDLE_PACKET_READ(ReadBEUTF16String16, AString, ServerHost); |
| 492 | HANDLE_PACKET_READ(ReadBEInt, int, ServerPort); |
| 493 | m_Username = Username; |
| 494 | |
| 495 | if (!m_Client->HandleHandshake( m_Username )) |
| 496 | { |
| 497 | return PARSE_OK; // Player is not allowed into the server |
| 498 | } |
| 499 | |
| 500 | // Send a 0xfd Encryption Key Request http://wiki.vg/Protocol#0xFD |
| 501 | SendEncryptionKeyRequest(); |
| 502 | |
| 503 | return PARSE_OK; |
| 504 | } |
| 505 | |
| 506 | |
| 507 |
nothing calls this directly
no test coverage detected