Goby3 3.3.0
2025.07.10
Loading...
Searching...
No Matches
tcp_config.proto
Go to the documentation of this file.
1syntax = "proto2";
2import "goby/protobuf/option_extensions.proto";
3import "dccl/option_extensions.proto";
4
5package goby.middleware.protobuf;
6
7message 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
28message 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}