shadowsocks

package
v0.0.0-...-6568052 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DialTCP

func DialTCP(t *structs.ServerInfo, target string) (net.Conn, error)

func DialUDP

func DialUDP(t *structs.ServerInfo, id int32) (net.Conn, error)

Types

type Conn

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

func (*Conn) Read

func (c *Conn) Read(data []byte) (int, error)

func (*Conn) RemoteAddr

func (c *Conn) RemoteAddr() net.Addr

func (*Conn) Write

func (c *Conn) Write(data []byte) (int, error)

type HTTP

type HTTP struct {
	net.Conn

	Host string
	// contains filtered or unexported fields
}

func (*HTTP) Read

func (c *HTTP) Read(data []byte) (int, error)

func (*HTTP) Write

func (c *HTTP) Write(data []byte) (int, error)

Jump to

Keyboard shortcuts

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