-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrequest.proto
66 lines (55 loc) · 1.01 KB
/
request.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
syntax = "proto3";
message IMRequest {
uint32 type = 1;
bytes value = 2;
}
// type 1
message LoginRequest {
string username = 1;
string password = 2;
uint32 port = 3;
}
// type 2
message MessageRequest {
bool broadcast = 1;
string username = 2;
string msg = 3;
}
// type 3
message WhoElseRequest {
bool limitTime = 1;
uint32 pastSeconds = 2;
bool currentlyOnline = 3;
}
// type 4
message BlockRequest {
string username = 1;
}
// type 5
message UnBlockRequest {
string username = 1;
}
// type 6
message LogOutRequest {
}
// type 7
message GetIPRequest {
string username = 1;
}
// type 8
message RegisterFileRequest {
string filename = 1;
uint32 chunks = 2;
}
// type 9
// TODO: implement generalized [packed repeated value] (en/de)coding in ac_protobuf
message RegisterChunkRequest {
string filename = 1;
bytes chunks = 2;
}
// type 10
// TODO: implement generalized [packed repeated value] (en/de)coding in ac_protobuf
message SearchFileRequest {
string filename = 1;
bytes chunks = 2;
}