markedconn

package
v8.33.0+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DialMarkedTCP

func DialMarkedTCP(network string, laddr, raddr *net.TCPAddr, mark int) (net.Conn, error)

DialMarkedTCP creates a new TCP connection and marks it with the provided mark.

func MarkConnection

func MarkConnection(conn net.Conn, mark int) error

MarkConnection marks an existing connection with a mark

func SocketListener

func SocketListener(port string) (net.Listener, error)

SocketListener creates a TCP listener through system calls giving us more control over the specific parameters that we need.

Types

This section is empty.

Jump to

Keyboard shortcuts

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