connproc

package
v8.12.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fd

func Fd(c net.Conn) (*os.File, int, error)

Fd returns the Fd of a connection

func GetInterfaces

func GetInterfaces() map[string]struct{}

GetInterfaces retrieves all the local interfaces.

func GetOriginalDestination

func GetOriginalDestination(conn net.Conn) (net.IP, int, error)

GetOriginalDestination -- Func to get original destination a connection

func Pipe

func Pipe(ctx context.Context, inConn, outConn net.Conn) error

Pipe proxies data bi-directionally between in and out.

func ReadMsg

func ReadMsg(fd int) (int, []byte, error)

ReadMsg reads a message from the provided Fd

func WriteMsg

func WriteMsg(fd int, data []byte) error

WriteMsg writes a message to the provided Fd

Types

This section is empty.

Jump to

Keyboard shortcuts

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