sower

package
Version: v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Head struct {
	Cmd      byte
	Checksum uint64
	Port     uint16
	TgtAddr  [maxDomainLength]byte
}

action(>=0x80) + checksum + port + target + data data(HTTP, first byte < 0x7F)

func (*Head) Network

func (h *Head) Network() string

func (*Head) String

func (h *Head) String() string

type Sower

type Sower struct {
	// contains filtered or unexported fields
}

func New

func New(password string) *Sower

func (*Sower) Unwrap

func (s *Sower) Unwrap(conn net.Conn) (net.Addr, error)

func (*Sower) Wrap

func (s *Sower) Wrap(conn net.Conn, tgtHost string, tgtPort uint16) error

Source Files

Jump to

Keyboard shortcuts

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