Documentation ¶
Overview ¶
QUIC/SCION implementation.
Index ¶
Constants ¶
View Source
const ( // CtxTimedOutError is a custom QUIC error code that is used when canceling // writes due to context expiration. CtxTimedOutError quic.ApplicationErrorCode = iota + 1 // OpenStreamError is the error code when failing to opening a stream. OpenStreamError // AcceptStreamError is the error code when failing to accept a stream. AcceptStreamError )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConnDialer ¶ added in v0.6.0
type ConnDialer struct { // Conn is the connection to initiate QUIC Sessions on. It can be shared // between clients and servers, because QUIC connection IDs are used to // demux the packets. Conn net.PacketConn // TLSConfig is the client's TLS configuration for starting QUIC connections. TLSConfig *tls.Config // QUICConfig is the client's QUIC configuration. QUICConfig *quic.Config }
ConnDialer dials a net.Conn over a QUIC stream.
type ConnListener ¶ added in v0.6.0
type ConnListener struct { quic.Listener // contains filtered or unexported fields }
ConnListener wraps a quic.Listener as a net.Listener.
func NewConnListener ¶ added in v0.6.0
func NewConnListener(l quic.Listener) *ConnListener
NewConnListener constructs a new listener with the appropriate buffers set.
func (*ConnListener) Accept ¶ added in v0.6.0
func (l *ConnListener) Accept() (net.Conn, error)
Accept accepts the first stream on a session and wraps it as a net.Conn.
func (*ConnListener) AcceptCtx ¶ added in v0.7.0
AcceptCtx accepts the first stream on a session and wraps it as a net.Conn. Accepts a context in case the caller doesn't want this to block indefinitely.
func (*ConnListener) Close ¶ added in v0.6.0
func (l *ConnListener) Close() error
Close closes the listener.
Click to show internal directories.
Click to hide internal directories.