Commit 69a02de9 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent bac889e6
...@@ -5,7 +5,7 @@ import ( ...@@ -5,7 +5,7 @@ import (
) )
const ( const (
PROTOCOL_VERSION = 7 PROTOCOL_VERSION = 8
MIN_PACKET_SIZE = 10 // XXX link this to len(pkthead) ? MIN_PACKET_SIZE = 10 // XXX link this to len(pkthead) ?
MAX_PACKET_SIZE = 0x4000000 MAX_PACKET_SIZE = 0x4000000
...@@ -94,12 +94,16 @@ type Checksum [20]byte ...@@ -94,12 +94,16 @@ type Checksum [20]byte
// Zero value means "invalid id" (<-> None in py.PPTID) // Zero value means "invalid id" (<-> None in py.PPTID)
type PTid uint64 // XXX move to common place ? type PTid uint64 // XXX move to common place ?
// TODO None encodes as '\xff' * 8 (XXX use nan for None ?)
type Float float64
// NOTE original NodeList = []NodeInfo // NOTE original NodeList = []NodeInfo
type NodeInfo struct { type NodeInfo struct {
NodeType NodeType
Address Address
UUID UUID
NodeState NodeState
IdTimestamp Float
} }
// XXX -> CellInfo (and use []CellInfo) ? // XXX -> CellInfo (and use []CellInfo) ?
...@@ -162,6 +166,7 @@ type RequestIdentification struct { ...@@ -162,6 +166,7 @@ type RequestIdentification struct {
UUID UUID UUID UUID
Address Address
Name string Name string
IdTimestamp Float
} }
// XXX -> ReplyIdentification? RequestIdentification.Answer somehow ? // XXX -> ReplyIdentification? RequestIdentification.Answer somehow ?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment