-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathYYProto.proto
48 lines (41 loc) · 1.02 KB
/
YYProto.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
message YYProto {
required int32 cmd = 1;
optional ExchangeKeyReq key_req = 2;
optional ExchangeKeyAck key_ack = 3;
optional LoginReq login_req = 8;
}
message ExchangeKeyReq {
required bytes f1 = 1;
required bytes rsa_key = 2;
}
message ExchangeKeyAck {
required int32 f1 = 1;
required bytes rsa_key = 2;
required int32 f3 = 3;
required int32 f4 = 4;
}
message LoginReq {
required string username = 1;
required string password = 2;
required string imei = 3;
optional string f4 = 4;
optional string f5 = 5;
optional string f6 = 6;
optional string f7 = 7;
optional string f8 = 8;
required string yymand = 9;
required string proxy_proto = 10;
optional string f11 = 11;
required bool f12 = 12;
optional string f13 = 13;
required string version = 14;
required bool f15 = 15;
required bool f16 = 16;
}
message HeartBeatAct {
required int32 cmd = 1;
optional ChallengeAct f7 = 7;
}
message ChallengeAct {
optional bytes key = 3;
}