utils

package
v0.0.0-...-c9ef7f4 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const PipeBufferSize = 32 * 1024

Variables

This section is empty.

Functions

func PipePairWithTimeout

func PipePairWithTimeout(conn net.Conn, stream io.ReadWriteCloser, timeout time.Duration) error

Types

type LinuxSockopts

type LinuxSockopts struct {
	BindIface    *net.Interface
	FirewallMark *uint32
	FreeBind     bool
}

func (*LinuxSockopts) Control

func (o *LinuxSockopts) Control(network, address string, c syscall.RawConn) (err error)

type TCPDialer

type TCPDialer interface {
	DialTCPWithSource(dst, src *net.TCPAddr) (*net.TCPConn, error)
}

type TCPListener

type TCPListener interface {
	Accept() (net.Conn, error)
}

Jump to

Keyboard shortcuts

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