Versions in this module Expand all Collapse all v0 v0.8.0-vendored Jul 30, 2018 v0.0.2 Jul 26, 2019 Changes in this version + type Config struct + AcceptCookie func(clientAddr net.Addr, cookie *Cookie) bool + ConnectionIDLength int + HandshakeTimeout time.Duration + IdleTimeout time.Duration + KeepAlive bool + MaxIncomingStreams int + MaxIncomingUniStreams int + MaxReceiveConnectionFlowControlWindow uint64 + MaxReceiveStreamFlowControlWindow uint64 + StatelessResetKey []byte + Versions []VersionNumber + type Cookie struct + RemoteAddr string + SentTime time.Time + type ErrorCode = protocol.ApplicationErrorCode + type Listener interface + Accept func() (Session, error) + Addr func() net.Addr + Close func() error + func Listen(conn net.PacketConn, tlsConf *tls.Config, config *Config) (Listener, error) + func ListenAddr(addr string, tlsConf *tls.Config, config *Config) (Listener, error) + type ReceiveStream interface + CancelRead func(ErrorCode) + SetReadDeadline func(t time.Time) error + StreamID func() StreamID + type SendStream interface + CancelWrite func(ErrorCode) + Context func() context.Context + SetWriteDeadline func(t time.Time) error + StreamID func() StreamID + type Session interface + AcceptStream func() (Stream, error) + AcceptUniStream func() (ReceiveStream, error) + CloseWithError func(ErrorCode, error) error + ConnectionState func() tls.ConnectionState + Context func() context.Context + LocalAddr func() net.Addr + OpenStream func() (Stream, error) + OpenStreamSync func() (Stream, error) + OpenUniStream func() (SendStream, error) + OpenUniStreamSync func() (SendStream, error) + RemoteAddr func() net.Addr + 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) + func DialAddrContext(ctx context.Context, addr string, tlsConf *tls.Config, config *Config) (Session, error) + func DialContext(ctx context.Context, pconn net.PacketConn, remoteAddr net.Addr, host string, ...) (Session, error) + type Stream interface + CancelRead func(ErrorCode) + CancelWrite func(ErrorCode) + Context func() context.Context + SetDeadline func(t time.Time) error + SetReadDeadline func(t time.Time) error + SetWriteDeadline func(t time.Time) error + StreamID func() StreamID + type StreamError interface + Canceled func() bool + ErrorCode func() ErrorCode + type StreamID = protocol.StreamID + type VersionNumber = protocol.VersionNumber