network

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2016 License: MPL-2.0 Imports: 1 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 {
	// Total sockets the machine is maintaining of all types.
	Total int64

	// TODO Implement RAW sockets
	RAW struct{}
	// TODO Implement UDP sockets
	UDP struct{}

	// TCP socket information.
	TCP struct {
		// Total TCP sockets
		Total int64

		Established int64
		Closed      int64
		Orphaned    int64
		Synrecv     int64
		Timewait    int64
	}
}

Network returns network information about the machine.

func New

func New() *Network

New returns the Network information of the machine

Jump to

Keyboard shortcuts

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