net

package
v0.0.0-...-96ac732 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2014 License: Apache-2.0, Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

net implements a simple interface to the network namespaces.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenNamespace

func ListenNamespace(nsPath string, net, laddr string) (gnet.Listener, error)

ListenNamespace creates a net.Listener in the namespace of the given namespace path. The arguments are identical to net.Listen.

func ListenProcessNamespace

func ListenProcessNamespace(pid uintptr, net, laddr string) (gnet.Listener, error)

ListenProcessNamespace creates a net.Listener in the namespace of the given pid. The arguments are identical to net.Listen.

Types

This section is empty.

Jump to

Keyboard shortcuts

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