Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3319)

Unified Diff: blimp/common/proto/protocol_control.proto

Issue 1876983002: Use Chromium BUILD to approximate Blimp protocol version, and check it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add disconnection message and unit-tests Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: blimp/common/proto/protocol_control.proto
diff --git a/blimp/common/proto/protocol_control.proto b/blimp/common/proto/protocol_control.proto
index 7dd1004490270137fa3ead2a340092cf8658cc8c..9ee84c2d3842a855e3825471b93a154b5e151239 100644
--- a/blimp/common/proto/protocol_control.proto
+++ b/blimp/common/proto/protocol_control.proto
@@ -19,6 +19,16 @@ message StartConnectionMessage {
optional int32 protocol_version = 2;
}
+// Indicates the reason for the peer ending the connection.
+message EndConnectionMessage {
+ enum Reason {
+ UNKNOWN = 0;
+ AUTHENTICATION_FAILED = 1;
+ PROTOCOL_MISMATCH = 2;
+ };
+ optional Reason reason = 1;
+}
+
message ProtocolControlMessage {
enum Type {
UNKNOWN = 0;
@@ -30,10 +40,13 @@ message ProtocolControlMessage {
// Bi-directional types.
CHECKPOINT_ACK = 200;
+ END_CONNECTION = 201;
Sriram 2016/04/22 21:07:34 Shouldn't this be Server -> Client type instead of
}
optional Type type = 1;
optional StartConnectionMessage start_connection = 1001;
+
optional CheckpointAckMessage checkpoint_ack = 1200;
+ optional EndConnectionMessage end_connection = 1201;
}

Powered by Google App Engine
This is Rietveld 408576698