Goby3  3.1.5a
2024.05.23
tcp_config.proto
Go to the documentation of this file.
1 syntax = "proto2";
2 import "goby/protobuf/option_extensions.proto";
3 import "dccl/option_extensions.proto";
4 
5 package goby.middleware.protobuf;
6 
7 message TCPServerConfig
8 {
9  option (dccl.msg) = {
10  unit_system: "si"
11  };
12 
13  required uint32 bind_port = 2 [
14  (goby.field) = { description: "TCP Port to bind on" example: "50000" }
15  ];
16 
17  optional string end_of_line = 3 [
18  default = "\n",
19  (goby.field) = {
20  description: "End of line string. Can also be a std::regex"
21  }
22  ];
23 
24  optional bool set_reuseaddr = 10 [default = false];
25  optional bool ipv6 = 11 [default = false];
26 }
27 
28 message TCPClientConfig
29 {
30  option (dccl.msg) = {
31  unit_system: "si"
32  };
33 
34  optional string end_of_line = 3 [
35  default = "\n",
36  (goby.field) = {
37  description: "End of line string. Can also be a std::regex"
38  }
39  ];
40 
41  required string remote_address = 5 [(goby.field) = {
42  description: "Remote address to transfer data to"
43  example: "192.168.1.1"
44  }];
45  required uint32 remote_port = 6 [(goby.field) = {
46  description: "TCP port for remote endpoint"
47  example: "50001"
48  }];
49  optional bool ipv6 = 7 [default = false];
50 }