Documentation
¶
Index ¶
- type Builder
- type Cfg
- func (t Cfg) DialAddr(addr string, tlsConf *tls.Config) (quic.Session, error)
- func (t Cfg) DialConn(addr string, tlsConf *tls.Config) (_ net.Conn, err error)
- func (t Cfg) ListenAddr(addr string, tlsConf *tls.Config) (quic.Listener, error)
- func (t Cfg) ListenConn(addr string, tlsConf *tls.Config) (net.Listener, error)
- func (t Cfg) ToCfg() *quic.Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cfg ¶
type Cfg struct {
Versions []quic.VersionNumber
ConnectionIDLength int
HandshakeTimeout time.Duration
MaxIdleTimeout time.Duration
MaxReceiveStreamFlowControlWindow uint64
MaxReceiveConnectionFlowControlWindow uint64
MaxIncomingStreams int64
MaxIncomingUniStreams int64
StatelessResetKey []byte
KeepAlive bool
TokenStore quic.TokenStore
QuicTracer quictrace.Tracer
Tracer logging.Tracer
AcceptToken func(clientAddr net.Addr, token *quic.Token) bool
}
func DefaultCfg ¶
func DefaultCfg() Cfg
func (Cfg) DialConn ¶
DialConn creates a new QUIC connection it returns once the connection is established and secured with forward-secure keys
func (Cfg) ListenAddr ¶
func (Cfg) ListenConn ¶
ListenConn creates a QUIC listener on the given network interface
Click to show internal directories.
Click to hide internal directories.