socket

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: May 23, 2020 License: AGPL-3.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// UnidentifiedProcessID is originally defined in the process pkg, but duplicated here because of import loops.
	UnidentifiedProcessID = -1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	IP   net.IP
	Port uint16
}

Address is an IP + Port pair.

type BindInfo

type BindInfo struct {
	Local Address
	PID   int
	UID   int
	Inode int
}

BindInfo holds socket information returned by the system.

type ConnectionInfo

type ConnectionInfo struct {
	Local  Address
	Remote Address
	PID    int
	UID    int
	Inode  int
}

ConnectionInfo holds socket information returned by the system.

Jump to

Keyboard shortcuts

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