Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32508891
D4217.1767090578.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D4217.1767090578.diff
View Options
diff --git a/native/cpp/CommonCpp/grpc/protos/tunnelbroker.proto b/native/cpp/CommonCpp/grpc/protos/tunnelbroker.proto
--- a/native/cpp/CommonCpp/grpc/protos/tunnelbroker.proto
+++ b/native/cpp/CommonCpp/grpc/protos/tunnelbroker.proto
@@ -22,7 +22,7 @@
rpc Get(GetRequest) returns (stream GetResponse) {}
// Replacing Send and Get with a single bidirectional streaming RPC
- rpc OpenStream(stream OutboundMessage) returns (stream InboundMessage) {}
+ rpc MessagesStream(stream MessageToTunnelbroker) returns (stream MessageToClient) {}
}
// Session
@@ -76,19 +76,53 @@
repeated string blobHashes = 3;
}
-message OutboundMessage {
- string toDeviceID = 1;
- string payload = 2;
- repeated string blobHashes = 3;
+// Common messages structures for the MessagesStream
+
+message ProcessedMessages {
+ repeated string messageID = 1;
}
-message InboundMessage {
- string fromDeviceID = 1;
- string fromConnectionID = 2;
+// The messages from the Client to the Tunnelbroker
+
+message MessageToTunnelbrokerStruct {
+ string messageID = 1;
+ string toDeviceID = 2;
string payload = 3;
repeated string blobHashes = 4;
}
+message MessagesToSend {
+ repeated MessageToTunnelbrokerStruct messages = 1;
+}
+
+message MessageToTunnelbroker {
+ string sessionID = 1;
+ oneof data {
+ MessagesToSend messagesToSend = 2;
+ ProcessedMessages processedMessages = 3;
+ }
+}
+
+// The messages from the Tunnelbroker to the Client
+
+message MessageToClientStruct {
+ string messageID = 1;
+ string fromDeviceID = 2;
+ string payload = 3;
+ repeated string blobHashes = 4;
+}
+
+message MessagesToDeliver {
+ repeated MessageToClientStruct messages = 1;
+}
+
+message MessageToClient {
+ oneof data {
+ MessagesToDeliver messagesToDeliver = 1;
+ ProcessedMessages processedMessages = 2;
+ }
+}
+
// Old API structures
enum CheckResponseType {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 30, 10:29 AM (19 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5866968
Default Alt Text
D4217.1767090578.diff (1 KB)
Attached To
Mode
D4217: [services] Tunnelbroker - Add messages request and confirmation method to grpc proto file
Attached
Detach File
Event Timeline
Log In to Comment