2 import "goby/protobuf/option_extensions.proto";
3 import "dccl/option_extensions.proto";
5 package goby.middleware.protobuf;
7 message TCPServerConfig
13 required uint32 bind_port = 2 [
14 (goby.field) = { description: "TCP Port to bind on" example: "50000" }
17 optional string end_of_line = 3 [
20 description: "End of line string. Can also be a std::regex"
24 optional bool set_reuseaddr = 10 [default = false];
25 optional bool ipv6 = 11 [default = false];
28 message TCPClientConfig
34 optional string end_of_line = 3 [
37 description: "End of line string. Can also be a std::regex"
41 required string remote_address = 5 [(goby.field) = {
42 description: "Remote address to transfer data to"
43 example: "192.168.1.1"
45 required uint32 remote_port = 6 [(goby.field) = {
46 description: "TCP port for remote endpoint"
49 optional bool ipv6 = 7 [default = false];