quic

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dial

func Dial(addr string, tlsConf *tls.Config, quicConf *quic.Config, timeout time.Duration) (net.Conn, error)

Dial wraps quic dial

func Listen

func Listen(addr string, config *tls.Config) (net.Listener, error)

Listen wraps quic listen

Types

type Conn

type Conn struct {
	quic.Session
	quic.Stream
}

Conn wraps quick.Session to net.Conn

type Listener

type Listener struct {
	quic.Listener
}

Listener wraps quick.Listener to net.Listener

func (*Listener) Accept

func (ln *Listener) Accept() (net.Conn, error)

Accept waits for and returns the next connection to the listener.

Jump to

Keyboard shortcuts

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