Versions in this module Expand all Collapse all v1 v1.8.2 Oct 6, 2024 v1.8.1 Aug 6, 2024 v1.8.0 Jul 26, 2024 Changes in this version type Config + EnableCID bool v1.7.3 Feb 5, 2024 Changes in this version + const Backlog + const MaxPktBuf + type Client struct + func New(cfg *Config) (*Client, error) + func (client *Client) Close() error + type Config struct + AllowFunc func(localAddr, remoteAddr net.Addr) bool + BaseContext context.Context + BindAddress string + CipherSuites ciphers.CipherList + EllipticCurves ciphers.CurveList + IdleTimeout time.Duration + MTU int + PSKCallback func([]byte) ([]byte, error) + PSKIdentity string + RemoteDialFunc func(ctx context.Context, network string) (net.Conn, error) + StaleMode util.StaleMode + TimeLimitFunc func() time.Duration + Timeout time.Duration