quic

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: AGPL-3.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dial

func Dial(ctx context.Context, dest net.Destination, c *QuicConfig, e security.Engine, socketConfig i.PacketListener) (net.Conn, error)

func NewQuicDialer

func NewQuicDialer(config *QuicConfig, engine security.Engine, socketConfig i.PacketListener) *quicDialer

Types

type Listener

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

Listener is an internet.Listener that listens for TCP connections.

func Listen

func Listen(ctx context.Context, address net.Address, port net.Port, c *QuicConfig, e security.Engine,
	sockConfig *dlhelper.SocketSetting, h func(net.Conn)) (*Listener, error)

Listen creates a new Listener based on configurations.

func (*Listener) Addr

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

Addr implements internet.Listener.Addr.

func (*Listener) Close

func (l *Listener) Close() error

Close implements internet.Listener.Close.

type QuicConfig

type QuicConfig struct {
	Security protocol.SecurityType
	Key      string
	Header   *anypb.Any
}

QuicConfig is the transport-layer QUIC settings (not generated in Buf transport protos).

Jump to

Keyboard shortcuts

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