Documentation ¶
Index ¶
Constants ¶
View Source
const BlockSize = 1024 * 1024
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct { Uin string AppID uint32 SigSession []byte SessionKey []byte SsoAddr []Addr // contains filtered or unexported fields }
func (*Session) AddrLength ¶
func (*Session) AppendAddr ¶
type Transaction ¶
type Transaction struct { CommandID int32 Body io.Reader Sum []byte // md5 sum of body Size int64 // body size Ticket []byte LoginSig []byte Ext []byte Encrypt bool }
func (*Transaction) Build ¶
func (trans *Transaction) Build(s *Session, offset uint64, length uint32, md5hash []byte) *highway.ReqDataHighwayHead
Click to show internal directories.
Click to hide internal directories.