highway

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2022 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Addr

type Addr struct {
	IP   uint32
	Port int
}

func (Addr) AsNetIP

func (a Addr) AsNetIP() net.IP

func (Addr) String

func (a Addr) String() string

type Session

type Session struct {
	Uin        string
	AppID      int32
	SigSession []byte
	SessionKey []byte
	SsoAddr    []Addr
	// contains filtered or unexported fields
}

func (*Session) AddrLength

func (s *Session) AddrLength() int

func (*Session) AppendAddr

func (s *Session) AppendAddr(ip, port uint32)

func (*Session) Upload

func (s *Session) Upload(addr Addr, trans Transaction) error

func (*Session) UploadBDH

func (s *Session) UploadBDH(trans Transaction) ([]byte, error)

func (*Session) UploadBDHMultiThread

func (s *Session) UploadBDHMultiThread(trans Transaction, threadCount int) ([]byte, error)

func (*Session) UploadExciting

func (s *Session) UploadExciting(trans Transaction) ([]byte, error)

type Transaction

type Transaction struct {
	CommandID int32
	Body      io.Reader
	Sum       []byte // md5 sum of body
	Size      int64  // body size
	Ticket    []byte
	Ext       []byte
	Encrypt   bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL