tcp

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 = tcppb.TcpConfig

Jump to

Keyboard shortcuts

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