Versions in this module Expand all Collapse all v1 v1.9.1 Jan 7, 2022 Changes in this version + const CommandConnect + const CommandConnectV2 + const CommandError + const CommandPing + const CommandPong + const CommandTunnel + const DefaultSnellVersion + const Version + const Version1 + const Version2 + func HalfClose(conn net.Conn) error + func NewAES128GCM(psk []byte) shadowaead.Cipher + func NewChacha20Poly1305(psk []byte) shadowaead.Cipher + func WriteHeader(conn net.Conn, host string, port uint, version int) error + type Pool struct + func NewPool(factory func(context.Context) (*Snell, error)) *Pool + func (p *Pool) Get() (net.Conn, error) + func (p *Pool) GetContext(ctx context.Context) (net.Conn, error) + func (p *Pool) Put(conn net.Conn) + type PoolConn struct + func (pc *PoolConn) Close() error + func (pc *PoolConn) Read(b []byte) (int, error) + func (pc *PoolConn) Write(b []byte) (int, error) + type Snell struct + func StreamConn(conn net.Conn, psk []byte, version int) *Snell + func (s *Snell) Read(b []byte) (int, error)