Versions in this module Expand all Collapse all v0 v0.2.1 Dec 11, 2022 Changes in this version + type Config struct + AcceptCookie func(clientAddr net.Addr, cookie *Cookie) bool + CacheHandshake bool + CreatePaths bool + HandshakeTimeout time.Duration + IdleTimeout time.Duration + KeepAlive bool + MaxReceiveConnectionFlowControlWindow uint64 + MaxReceiveStreamFlowControlWindow uint64 + RequestConnectionIDTruncation bool + Versions []VersionNumber + type Cookie = handshake.Cookie + type Listener interface + Accept func() (Session, error) + Addr func() net.Addr + Close func() error + func Listen(pconn net.PacketConn, tlsConf *tls.Config, config *Config) (Listener, error) + func ListenAddr(addr string, tlsConf *tls.Config, config *Config) (Listener, error) + func ListenAddrImpl(addr string, tlsConf *tls.Config, config *Config, pconnMgrArg *pconnManager) (Listener, error) + func ListenImpl(pconn net.PacketConn, tlsConf *tls.Config, config *Config, ...) (Listener, error) + type NonFWSession interface + WaitUntilHandshakeComplete func() error + func DialAddrNonFWSecure(addr string, tlsConf *tls.Config, config *Config) (NonFWSession, error) + func DialNonFWSecure(pconn net.PacketConn, remoteAddr net.Addr, host string, tlsConf *tls.Config, ...) (NonFWSession, error) + type Session interface + AcceptStream func() (Stream, error) + Close func(error) error + Context func() context.Context + GetConnectionID func() protocol.ConnectionID + LocalAddr func() net.Addr + OpenStream func() (Stream, error) + OpenStreamSync func() (Stream, error) + RemoteAddr func() net.Addr + SetIPAddress func(addr string) + func Dial(pconn net.PacketConn, remoteAddr net.Addr, host string, tlsConf *tls.Config, ...) (Session, error) + func DialAddr(addr string, tlsConf *tls.Config, config *Config) (Session, error) + type Stream interface + Context func() context.Context + GetBytesRetrans func() (protocol.ByteCount, error) + GetBytesSent func() (protocol.ByteCount, error) + Reset func(error) + SetDeadline func(t time.Time) error + SetReadDeadline func(t time.Time) error + SetWriteDeadline func(t time.Time) error + StreamID func() StreamID + type StreamID = protocol.StreamID + type VersionNumber = protocol.VersionNumber