.editorconfig, format
This commit is contained in:
@@ -8,16 +8,16 @@ syntax = "proto3";
|
||||
// false: delete the port
|
||||
// flags: search flags
|
||||
message PublishRequest {
|
||||
fixed32 port = 1;
|
||||
bool publish = 2;
|
||||
repeated string flags = 3;
|
||||
fixed32 port = 1;
|
||||
bool publish = 2;
|
||||
repeated string flags = 3;
|
||||
}
|
||||
|
||||
// Server -> Client
|
||||
// Acknowledge a PublishRequest
|
||||
// status: 0 if successful, anything else is an error
|
||||
message PublishResponse {
|
||||
uint32 status = 1;
|
||||
uint32 status = 1;
|
||||
}
|
||||
|
||||
// Client -> Server
|
||||
@@ -25,8 +25,8 @@ message PublishResponse {
|
||||
// limit: maximum number of peers to search for
|
||||
// flags: flags to search for
|
||||
message DiscoverRequest {
|
||||
uint32 limit = 1;
|
||||
repeated string flags = 2;
|
||||
uint32 limit = 1;
|
||||
repeated string flags = 2;
|
||||
}
|
||||
|
||||
// Server -> Client
|
||||
@@ -34,11 +34,11 @@ message DiscoverRequest {
|
||||
// status: 0 if successful, anything else is an error
|
||||
// peers: a list of peers, empty if nothing is found
|
||||
message DiscoverResponse {
|
||||
message DiscoverPeer {
|
||||
uint32 port = 1;
|
||||
fixed64 address = 2;
|
||||
repeated string flags = 3;
|
||||
}
|
||||
uint32 status = 1;
|
||||
repeated DiscoverPeer peers = 2;
|
||||
message DiscoverPeer {
|
||||
uint32 port = 1;
|
||||
fixed64 address = 2;
|
||||
repeated string flags = 3;
|
||||
}
|
||||
uint32 status = 1;
|
||||
repeated DiscoverPeer peers = 2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user