snell

package
v0.0.0-...-d537834 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommandPing    byte = 0
	CommandConnect byte = 1

	CommandTunnel byte = 0
	CommandError  byte = 2

	Version byte = 1
)

Variables

This section is empty.

Functions

func StreamConn

func StreamConn(conn net.Conn, psk []byte) net.Conn

func WriteHeader

func WriteHeader(conn net.Conn, host string, port uint) error

Types

type Snell

type Snell struct {
	protocol.ConnSession
	protocol.NeedMeter

	net.Conn
	// contains filtered or unexported fields
}

func (*Snell) Close

func (s *Snell) Close() error

func (*Snell) Read

func (s *Snell) Read(b []byte) (int, error)

func (*Snell) SetMeter

func (s *Snell) SetMeter(meter stat.TrafficMeter)

func (*Snell) Write

func (s *Snell) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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