Created
March 11, 2012 21:42
-
-
Save rramsden/2018307 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Information sent by the client at connection setup | |
# | |
# 1 byte-order | |
# #x42 MSB first | |
# #x6C LSB first | |
# 1 unused | |
# 2 CARD16 protocol-major-version | |
# 2 CARD16 protocol-minor-version | |
# 2 n length of authorization-protocol-name | |
# 2 d length of authorization-protocol-data | |
# 2 unused | |
# n STRING8 authorization-protocol-name | |
# p unused, p=pad(n) | |
# d STRING8 authorization-protocol-data | |
# q unused, q=pad(d) | |
# | |
class ClientHandshake < BasePacket | |
field :byte_order, Uint8 | |
field :static, "\x00" | |
field :proto_version_major, Uint16 | |
field :proto_version_minor, Uint16 | |
field :auth_proto_name_length, Uint16 | |
field :auth_proto_data_length, Uint16 | |
field :static, "\x00" | |
field :static, "\x00" | |
field :auth_proto_name, String8 | |
field :auth_proto_data, String8 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment