nettestutil

package
v0.0.0-...-84592dd Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Network

type Network struct {
	// contains filtered or unexported fields
}

func New

func New(n int) *Network

func (*Network) GetValve

func (n *Network) GetValve(i, j int) bool

func (*Network) Partition

func (n *Network) Partition(partitions ...[]int)

Partition partitions the network according to the following rules: - nodes in the same slice are in the same partition - nodes not in any slice are not connected to any node - passing no slices represents a fully connected network

func (*Network) SetValve

func (n *Network) SetValve(i, j int, v bool)

func (*Network) Wrap

func (n *Network) Wrap(c net.Conn, i, j int) net.Conn

Jump to

Keyboard shortcuts

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