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 ¶ added in v1.10.0
func PacketConn(conn net.Conn) net.PacketConn
func ReadPacket ¶ added in v1.10.0
func WritePacket ¶ added in v1.10.0
Types ¶
Click to show internal directories.
Click to hide internal directories.