Documentation ¶
Index ¶
Constants ¶
View Source
const ( // traffic data MessageTypePacket = 0 // routing info MessageTypeRouting = 1 // routing RoutingRegisterFailed = 2 RoutingRegisterAck = 3 // ttl PacketTTL = 32 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Packet ¶
type Packet struct { // dst Dst net.IP // src Src net.IP // ttl TTL int // the real ip packet Data []byte }
packet of network traffic
type Routing ¶
type Routing struct { // type Type int // peer's provided routings Routings []RoutingEntry // message Message string }
routing register msg
Click to show internal directories.
Click to hide internal directories.