Documentation ¶
Index ¶
Constants ¶
View Source
const ( EncryptTypeNotNeedEncrypt = 0x00 EncryptTypeEncryptByD2Key = 0x01 EncryptTypeEncryptByZeros = 0x02 )
View Source
const ( FlagNoCompression = 0x00000000 FlagZlibCompression = 0x00000001 )
View Source
const ( VersionDefault = 0x0000000a VersionSimple = 0x0000000b )
Variables ¶
This section is empty.
Functions ¶
func CopyServerToClientMessage ¶
func CopyServerToClientMessage(dst, src *ServerToClientMessage)
Types ¶
type ClientCodec ¶
type ClientToServerMessage ¶
type ClientToServerMessage struct { Simple bool Version uint32 EncryptType uint8 UserD2 []byte Username string UserD2Key [16]byte Seq uint32 FixID uint32 AppID uint32 NetworkType uint8 // 0x00: Others; 0x01: Wi-Fi NetIPFamily uint8 // 0x00: Others; 0x01: IPv4; 0x02: IPv6; 0x03: Dual UserA2 []byte ServiceMethod string Cookie []byte IMEI string KSID []byte IMSI string Revision string ReserveField []byte Buffer []byte }
Click to show internal directories.
Click to hide internal directories.