summaryrefslogtreecommitdiffstats
path: root/3rdparty/openpgm-svn-r1085/pgm/examples/ping.proto
blob: 8c6dfd1484877dbe91a3d2745179686c94f3ba7a (plain) (blame)
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
package example;

message SubscriptionHeader {
	required string subject = 1;
}

message MarketDataHeader {
	enum MsgType {
		MSG_VERIFY = 0;
		MSG_UPDATE = 1;
		MSG_CORRECT = 2;
		MSG_CLOSING = 3;
		MSG_DROP = 4;
		MSG_AGGREGATE = 5;
		MSG_STATUS = 6;
		MSG_CANCEL = 7;
		MSG_INITIAL = 8;
	}
	required MsgType msg_type = 1;
	enum RecType {
		PING = 1;
	}
	required RecType rec_type = 2;
	enum RecStatus {
		STATUS_OK = 0;
		STATUS_BAD_NAME = 1;
		STATUS_BAD_LINE = 2;
		STATUS_CACHE_FULL = 3;
		STATUS_PERMISSION_DENIED = 4;
		STATUS_PREEMPTED = 5;
		STATUS_BAD_ACCESS = 6;
		STATUS_TEMP_UNAVAIL = 7;
		STATUS_REASSIGN = 8;
		STATUS_NOSUBSCRIBERS = 9;
		STATUS_EXPIRED = 10;
	}
	required RecStatus rec_status = 3;
}

message Ping {
	required SubscriptionHeader subscription_header = 1;
	required MarketDataHeader market_data_header = 2;
	required fixed64 time = 3;
	required fixed64 seqno = 4;
	required fixed64 latency = 5;
	required bytes payload = 6;
}