Documentation ¶
Overview ¶
Package host is a fundamental part of networking system. Each host has:
- one real network address (IP or any other transport protocol address)
- multiple abstract network IDs (either host's own or ones belonging to relayed hosts)
Contains structures to describe network entities in code.
Usage:
originAddress, err := host.NewAddress(address) if err != nil { ... } origin, err := host.NewOrigin(nil, originAddress) if err != nil { ... }
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Host ¶
type Host struct { // ID is a 20 byte unique identifier. ID id.ID // Address is IP and port. Address *Address }
Host is the over-the-wire representation of a host.
Click to show internal directories.
Click to hide internal directories.