Commit 878bf8ca authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent ff786dd0
...@@ -28,6 +28,7 @@ package neo ...@@ -28,6 +28,7 @@ package neo
// If a structure is defined only to represent basic type that is included in // If a structure is defined only to represent basic type that is included in
// several messages and does not itself denote a separate message, its // several messages and does not itself denote a separate message, its
// definition is prefixed with `//neo:proto typeonly` comment. // definition is prefixed with `//neo:proto typeonly` comment.
//
// XXX neo:proto answerto x? (btw just needs "answer" flag) // XXX neo:proto answerto x? (btw just needs "answer" flag)
// TODO regroup messages definitions to stay more close to 1 communication topic // TODO regroup messages definitions to stay more close to 1 communication topic
...@@ -292,18 +293,8 @@ type Error struct { ...@@ -292,18 +293,8 @@ type Error struct {
Message string Message string
} }
// Check if a peer is still alive. Any -> Any.
type Ping struct {
// TODO _answer = PFEmpty
}
// Tell peer it can close the connection if it has finished with us. Any -> Any
type CloseClient struct {
}
// Request a node identification. This must be the first message for any // Request a node identification. This must be the first message for any
// connection. Any -> Any. // connection. Any -> Any.
// XXX must go before ping
type RequestIdentification struct { type RequestIdentification struct {
NodeType NodeType // XXX name NodeType NodeType // XXX name
UUID NodeUUID UUID NodeUUID
...@@ -321,6 +312,15 @@ type AcceptIdentification struct { ...@@ -321,6 +312,15 @@ type AcceptIdentification struct {
YourUUID NodeUUID YourUUID NodeUUID
} }
// Check if a peer is still alive. Any -> Any.
type Ping struct {
// TODO _answer = PFEmpty
}
// Tell peer it can close the connection if it has finished with us. Any -> Any
type CloseClient struct {
}
// Ask current primary master's uuid. CTL -> A. // Ask current primary master's uuid. CTL -> A.
type PrimaryMaster struct { type PrimaryMaster struct {
} }
......
This diff is collapsed.
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