snell

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2020 License: GPL-3.0 Imports: 10 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 {
	net.Conn
	// contains filtered or unexported fields
}

func (*Snell) Read

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

Jump to

Keyboard shortcuts

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