wrapping

package
v0.7.13 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConnClosed = fmt.Errorf("use of closed network connection")
)

Functions

func ConnWithAddr

func ConnWithAddr(conn net.Conn, localAddr, remoteAddr net.Addr) net.Conn

func ConnWithCloser

func ConnWithCloser(conn net.Conn, closer func() error) net.Conn

func NewCommandDialContext

func NewCommandDialContext(ctx context.Context, commandDialer bridge.CommandDialer, localAddr, remoteAddr net.Addr, proxy []string) (net.Conn, error)

func NewCommandListener

func NewCommandListener(ctx context.Context, commandDialer bridge.CommandDialer, localAddr net.Addr, remoteAddr net.Addr, proxy []string) (net.Listener, error)

func NewNetAddr

func NewNetAddr(network, address string) net.Addr

Types

This section is empty.

Jump to

Keyboard shortcuts

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