Documentation ¶
Index ¶
- Constants
- func HalfClose(conn net.Conn) error
- func NewAES128GCM(psk []byte) shadowaead.Cipher
- func NewChacha20Poly1305(psk []byte) shadowaead.Cipher
- func PacketConn(conn net.Conn) net.PacketConn
- func ReadPacket(r io.Reader, payload []byte) (net.Addr, int, error)
- func WriteHeader(conn net.Conn, host string, port uint, version int) error
- func WritePacket(w io.Writer, socks5Addr, payload []byte) (int, error)
- func WriteUDPHeader(conn net.Conn, version int) error
- type Pool
- type PoolConn
- type Snell
Constants ¶
View Source
const ( Version1 = 1 Version2 = 2 Version3 = 3 DefaultSnellVersion = Version1 )
Variables ¶
This section is empty.
Functions ¶
func NewAES128GCM ¶
func NewAES128GCM(psk []byte) shadowaead.Cipher
func NewChacha20Poly1305 ¶
func NewChacha20Poly1305(psk []byte) shadowaead.Cipher
func PacketConn ¶
func PacketConn(conn net.Conn) net.PacketConn
Types ¶
Click to show internal directories.
Click to hide internal directories.