quicnet

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	quic.Stream
	Conn quic.Connection
}

func OpenStream

func OpenStream(ctx context.Context, conn quic.Connection) (Conn, error)

func (Conn) LocalAddr

func (cw Conn) LocalAddr() net.Addr

func (Conn) RemoteAddr

func (cw Conn) RemoteAddr() net.Addr

type Listener

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

func NewListener

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

func (*Listener) Accept

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

func (*Listener) Addr

func (l *Listener) Addr() net.Addr

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