xquic

package
v0.0.0-...-3d1188e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

View Source
const XQuicPreHandShake = "XQuicPreHandShake"

Variables

View Source
var QuicConnTmp *quicconn.QuicConn

Functions

func Dial

func Dial(network string, addr string) (conn net.Conn, err error)

func DialContext

func DialContext(ctx context.Context, network string, addr string) (conn net.Conn, err error)

func Listen

func Listen(network, addr string) (ln net.Listener, err error)

func ListenContext

func ListenContext(ctx context.Context, network, addr string) (ln net.Listener, err error)

func QuicUpgrader

func QuicUpgrader() xnetutil.Upgrader

func XUpgrader

func XUpgrader(cfg *tls.Config, isClient bool) xnetutil.Upgrader

Types

type QuicDialer

type QuicDialer struct {
	// contains filtered or unexported fields
}

func NewDialer

func NewDialer(c net.PacketConn, tlsCfg *tls.Config) *QuicDialer

func (*QuicDialer) Dial

func (qd *QuicDialer) Dial(network string, addr string) (conn net.Conn, err error)

func (*QuicDialer) DialContext

func (qd *QuicDialer) DialContext(ctx context.Context, network string, addr string) (conn net.Conn, err error)

type QuicListenConfig

type QuicListenConfig struct {
	// contains filtered or unexported fields
}

func NewQuicListenConfig

func NewQuicListenConfig(c net.PacketConn, tlsCfg *tls.Config) *QuicListenConfig

func NewQuicListenConfigWithTransport

func NewQuicListenConfigWithTransport(tr *quic.Transport, tlsCfg *tls.Config) *QuicListenConfig

func (*QuicListenConfig) Listen

func (qc *QuicListenConfig) Listen(network string, address string) (net.Listener, error)

Listen if exist c will be not use address and network

func (*QuicListenConfig) ListenContext

func (qc *QuicListenConfig) ListenContext(ctx context.Context, network string, addr string) (ln net.Listener, err error)

ListenContext if exist c will be not use address and network

type QuicTransportDialer

type QuicTransportDialer struct {
	// contains filtered or unexported fields
}

func NewQuicTransportDialer

func NewQuicTransportDialer(tr *quic.Transport, tlsCfg *tls.Config) *QuicTransportDialer

func (*QuicTransportDialer) Close

func (qtdr *QuicTransportDialer) Close() error

func (*QuicTransportDialer) Dial

func (qtdr *QuicTransportDialer) Dial(network string, addr string) (net.Conn, error)

func (*QuicTransportDialer) DialContext

func (qtdr *QuicTransportDialer) DialContext(ctx context.Context, network string, addr string) (net.Conn, error)

func (*QuicTransportDialer) Transport

func (qtdr *QuicTransportDialer) Transport() *quic.Transport

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL