netutil

package
v2.3.8 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package netutil implements network-related utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DropPort added in v2.1.0

func DropPort(port int) error

DropPort drops all tcp packets that are received from the given port and sent to the given port.

func RecoverPort added in v2.1.0

func RecoverPort(port int) error

RecoverPort stops dropping tcp packets at given port.

func RemoveLatency added in v2.3.0

func RemoveLatency() error

RemoveLatency resets latency configurations.

func SetLatency added in v2.3.0

func SetLatency(ms, rv int) error

SetLatency adds latency in millisecond scale with random variations.

func URLStringsEqual

func URLStringsEqual(a []string, b []string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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