highway

package
v0.0.0-...-f7ddc24 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: AGPL-3.0 Imports: 17 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 BdhInput

type BdhInput struct {
	CommandID int32
	File      string // upload multi-thread required
	Body      io.ReadSeeker
	Ticket    []byte
	Ext       []byte
	Encrypt   bool
}

type ExcitingInput

type ExcitingInput struct {
	CommandID int32
	Body      io.ReadSeeker
	Ticket    []byte
	Ext       []byte
}

type Input

type Input struct {
	CommandID int32
	Key       []byte
	Body      io.ReadSeeker
}

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, input Input) error

func (*Session) UploadBDH

func (s *Session) UploadBDH(input BdhInput) ([]byte, error)

func (*Session) UploadBDHMultiThread

func (s *Session) UploadBDHMultiThread(input BdhInput, threadCount int) ([]byte, error)

func (*Session) UploadExciting

func (s *Session) UploadExciting(input ExcitingInput) ([]byte, error)

Jump to

Keyboard shortcuts

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