Documentation ¶
Index ¶
- Constants
- type Addr
- func (a Addr) AsNetAddr() net.UDPAddr
- func (a Addr) GetIP() netip.Addr
- func (a Addr) Key() string
- func (a Addr) MapIP(fn func(netip.Addr) netip.Addr) Addr
- func (a Addr) MarshalText() ([]byte, error)
- func (a Addr) Network() string
- func (a Addr) String() string
- func (a *Addr) UnmarshalText(x []byte) error
- type Swarm
Constants ¶
View Source
const ( IPv4MTU = 576 IPv6MTU = 1280 TheoreticalMTU = (1 << 16) - 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Swarm ¶
type Swarm struct {
// contains filtered or unexported fields
}
Swarm implements p2p.Swarm using the User Datagram Protocol
WARNING: This implementation is not secure. It does not encrypt traffic, does not verify identity of peers, and (therefore) does not implement p2p.SecureSwarm.
It is included as a transport for secure swarms to be built on.
func (*Swarm) LocalAddrs ¶
Click to show internal directories.
Click to hide internal directories.