obfs

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPObfs

func NewHTTPObfs(conn net.Conn, host string, port string) net.Conn

NewHTTPObfs return a HTTPObfs

func NewTLSObfs

func NewTLSObfs(conn net.Conn, server string) net.Conn

NewTLSObfs return a SimpleObfs

Types

type HTTPObfs

type HTTPObfs struct {
	net.Conn
	// contains filtered or unexported fields
}

HTTPObfs is shadowsocks http simple-obfs implementation

func (*HTTPObfs) Read

func (ho *HTTPObfs) Read(b []byte) (int, error)

func (*HTTPObfs) Write

func (ho *HTTPObfs) Write(b []byte) (int, error)

type TLSObfs

type TLSObfs struct {
	net.Conn
	// contains filtered or unexported fields
}

TLSObfs is shadowsocks tls simple-obfs implementation

func (*TLSObfs) Read

func (to *TLSObfs) Read(b []byte) (int, error)

func (*TLSObfs) Write

func (to *TLSObfs) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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