Documentation
¶
Index ¶
Constants ¶
View Source
const BlockSize = 1024 * 1024
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Session ¶
type Session struct {
Uin *uint32
AppID uint32
SubAppID uint32
SigSession []byte
SessionKey []byte
SsoAddr []Addr
// contains filtered or unexported fields
}
func (*Session) AddrLength ¶
func (*Session) AppendAddr ¶
type Transaction ¶
type Transaction struct {
CommandID uint32
Body io.Reader
Sum []byte // md5 sum of body
Size uint64 // 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.