quic

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: MIT Imports: 11 Imported by: 0

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