quic

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2020 License: MIT Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotPacket = fmt.Errorf("not packet")
	ErrNotTLS    = fmt.Errorf("not tls")
)

Functions

func NewServer

func NewServer(pkt packet.Packet, tlsConfig tls.TLS) stream.ListenConfig

func NewServerWithConfig

func NewServerWithConfig(conf *Config) (stream.ListenConfig, error)

Types

type Config

type Config struct {
	Packet packet.Packet
	TLS    tls.TLS
}

type Listener

type Listener struct {
	quic.Listener
	// contains filtered or unexported fields
}

func NewListener

func NewListener(ctx context.Context, listener quic.Listener) *Listener

func (*Listener) Accept

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

func (*Listener) Close

func (l *Listener) Close() error

Jump to

Keyboard shortcuts

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