2 import "goby/protobuf/option_extensions.proto";
3 import "dccl/option_extensions.proto";
5 package goby.middleware.protobuf;
9 required string addr = 1;
10 required uint32 port = 2;
15 optional string addr = 1;
16 optional uint32 port = 2;
17 optional bool all_clients = 3 [default = false];
22 optional int32 index = 1 [default = -1];
26 UDPEndPoint udp_src = 10;
27 TCPEndPoint tcp_src = 11;
32 UDPEndPoint udp_dest = 20;
33 TCPEndPoint tcp_dest = 21;
36 optional bytes data = 30;
41 optional int32 index = 1 [default = -1];
51 required Command command = 2;
56 optional int32 index = 1 [default = -1];
57 optional bool rts = 2;
58 optional bool dtr = 3;
61 message TCPServerEvent
63 optional int32 index = 1 [default = -1];
70 required Event event = 2;
71 optional TCPEndPoint local_endpoint = 3;
72 optional TCPEndPoint remote_endpoint = 4;
73 optional int32 number_of_clients = 5;
76 message TCPClientEvent
78 optional int32 index = 1 [default = -1];
84 required Event event = 2;
85 optional TCPEndPoint local_endpoint = 3;
86 optional TCPEndPoint remote_endpoint = 4;
91 IO__STATE_UNKNOWN = -1;
94 IO__CRITICAL_FAILURE = 3;
101 IO__INIT_FAILURE = 1;
102 IO__READ_FAILURE = 2;
103 IO__WRITE_FAILURE = 3;
104 IO__DATA_TIMEOUT = 4;
106 required ErrorCode code = 1;
107 optional string text = 2;
112 optional int32 index = 1 [default = -1];
113 required IOState state = 2;
114 optional IOError error = 3;