tcp

package
v1.1.1 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: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_transport_protocols_tcp_config_proto protoreflect.FileDescriptor

Functions

func Dial

func Dial(ctx context.Context, dest net1.Destination, c *TcpConfig,
	securityConfig security.Engine, socketConfig i.Dialer) (net.Conn, error)

Dial dials a new TCP connection to the given destination.

func NewTcpDialer

func NewTcpDialer(config *TcpConfig, engine security.Engine, socketConfig i.Dialer) *tcpDialer

Types

type Listener

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

implement net.Listener

func Listen

func Listen(ctx context.Context, addr mynet.Destination,
	config *TcpConfig, listener i.Listener, h func(net.Conn)) (*Listener, error)

type TcpConfig

type TcpConfig struct {
	HeaderSettings *anypb.Any `protobuf:"bytes,2,opt,name=header_settings,json=headerSettings,proto3" json:"header_settings,omitempty"`
	// contains filtered or unexported fields
}

func (*TcpConfig) Descriptor deprecated

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

Deprecated: Use TcpConfig.ProtoReflect.Descriptor instead.

func (*TcpConfig) GetHeaderSettings

func (x *TcpConfig) GetHeaderSettings() *anypb.Any

func (*TcpConfig) ProtoMessage

func (*TcpConfig) ProtoMessage()

func (*TcpConfig) ProtoReflect

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

func (*TcpConfig) Reset

func (x *TcpConfig) Reset()

func (*TcpConfig) String

func (x *TcpConfig) String() string

Jump to

Keyboard shortcuts

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