socat

package
v1.4.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoveAll

func RemoveAll(namespace string) error

RemoveAll remove all port forwrards that were created in this namespace.

func RemovePortForward

func RemovePortForward(namespace string, host string, dest int) error

RemovePortForward removes a single port forward

func SetPortForward

func SetPortForward(namespace string, ip string, host string, dest int) error

SetPortForward create a single port forward from host, to dest in this namespace The namespace is used to group port forward rules so they all can get terminated with one call later.

func ValidHost added in v1.2.2

func ValidHost(host string) bool

ValidHost checks if the host string is valid Valid hosts is (port, ip:port, or device:port)

Types

This section is empty.

Jump to

Keyboard shortcuts

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