quic

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConfig

func DefaultConfig() *quic.Config

DefaultConfig returns a quic.Config, where some fields are set to default values.

func NewConn

func NewConn(
	pconn net.PacketConn,
	remoteAddr net.Addr,
	host string,
	tlsConf *tls.Config,
	conf *quic.Config,
) (orbit.Conn, error)

func NewConnWithCloser

func NewConnWithCloser(
	pconn net.PacketConn,
	remoteAddr net.Addr,
	host string,
	tlsConf *tls.Config,
	conf *quic.Config,
	cl closer.Closer,
) (orbit.Conn, error)

func NewListener

func NewListener(conn net.PacketConn, tlsConf *tls.Config, conf *quic.Config) (orbit.Listener, error)

func NewListenerWithCloser

func NewListenerWithCloser(
	conn net.PacketConn,
	tlsConf *tls.Config,
	conf *quic.Config,
	cl closer.Closer,
) (orbit.Listener, error)

Pass a nil quic config for the default config.

func NewUDPConn

func NewUDPConn(
	addr string,
	tlsConf *tls.Config,
	conf *quic.Config,
) (orbit.Conn, error)

func NewUDPConnWithCloser

func NewUDPConnWithCloser(
	addr string,
	tlsConf *tls.Config,
	conf *quic.Config,
	cl closer.Closer,
) (orbit.Conn, error)

func NewUDPListener

func NewUDPListener(listenAddr string, tlsConf *tls.Config, conf *quic.Config) (orbit.Listener, error)

Pass a nil quic config for the default config.

func NewUDPListenerWithCloser

func NewUDPListenerWithCloser(
	listenAddr string,
	tlsConf *tls.Config,
	conf *quic.Config,
	cl closer.Closer,
) (orbit.Listener, error)

Pass a nil quic config for the default config.

Types

This section is empty.

Jump to

Keyboard shortcuts

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