]> git.sesse.net Git - cubemap/blob - state.proto
Rename cubemap.cpp to main.cpp. Aaaa....
[cubemap] / state.proto
1 // Corresponds to struct Client.
2 message ClientProto {
3         optional int32 sock = 1;
4         optional int32 state = 2;
5         optional bytes request = 3;
6         optional string stream_id = 4;
7         optional bytes header_or_error = 5;
8         optional int64 header_or_error_bytes_sent = 6;
9         optional int64 bytes_sent = 7;
10 };
11
12 // Corresponds to struct Stream.
13 message StreamProto {
14         optional bytes header = 1;
15         optional bytes data = 2;
16         optional int64 data_size = 3;
17         optional string stream_id = 4;
18 };
19
20 // Corresponds to class Input.
21 message InputProto {
22         optional int32 state = 1;
23         optional string stream_id = 2;
24         optional string url = 3;
25         optional bytes request = 4;
26         optional int32 request_bytes_sent = 5;
27         optional bytes response = 6;
28         optional bytes http_header = 10;
29         optional bytes pending_data = 7;
30         optional bool has_metacube_header = 8;
31         optional int32 sock = 9;
32 };
33
34 message CubemapStateProto {
35         repeated ClientProto clients = 1;
36         repeated StreamProto streams = 2;
37         repeated InputProto inputs = 5;
38         optional int32 server_sock = 3;
39         optional int32 port = 4;
40 };