Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
69a02de9
Commit
69a02de9
authored
Nov 28, 2016
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
bac889e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
t/neo/proto/pkt.go
t/neo/proto/pkt.go
+6
-1
No files found.
t/neo/proto/pkt.go
View file @
69a02de9
...
@@ -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 ?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment