quic

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_transport_protocols_quic_config_proto protoreflect.FileDescriptor

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 {
	Key      string                `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Security protocol.SecurityType `protobuf:"varint,2,opt,name=security,proto3,enum=x.common.protocol.SecurityType" json:"security,omitempty"`
	Header   *anypb.Any            `protobuf:"bytes,3,opt,name=header,proto3" json:"header,omitempty"`
	// contains filtered or unexported fields
}

func (*QuicConfig) Descriptor deprecated

func (*QuicConfig) Descriptor() ([]byte, []int)

Deprecated: Use QuicConfig.ProtoReflect.Descriptor instead.

func (*QuicConfig) GetHeader

func (x *QuicConfig) GetHeader() *anypb.Any

func (*QuicConfig) GetKey

func (x *QuicConfig) GetKey() string

func (*QuicConfig) GetSecurity

func (x *QuicConfig) GetSecurity() protocol.SecurityType

func (*QuicConfig) ProtoMessage

func (*QuicConfig) ProtoMessage()

func (*QuicConfig) ProtoReflect

func (x *QuicConfig) ProtoReflect() protoreflect.Message

func (*QuicConfig) Reset

func (x *QuicConfig) Reset()

func (*QuicConfig) String

func (x *QuicConfig) String() string

Jump to

Keyboard shortcuts

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