Goby3  3.1.5a
2024.05.23
udp_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 UDPOneToManyConfig
8 {
9  option (dccl.msg) = {
10  unit_system: "si"
11  };
12 
13  required uint32 bind_port = 2 [
14  (goby.field) = { description: "UDP Port to bind on" example: "50000" }
15  ];
16 
17  optional bool set_reuseaddr = 10 [default = false];
18  optional bool set_broadcast = 11 [default = false];
19  optional bool ipv6 = 12 [default = false];
20 }
21 
22 message UDPPointToPointConfig
23 {
24  option (dccl.msg) = {
25  unit_system: "si"
26  };
27 
28  optional uint32 bind_port = 2 [
29  (goby.field) = {
30  description: "UDP Port to bind on. Defaults to dynamically allocated (0)"
31  example: "50000"
32  },
33  default = 0
34  ];
35 
36  required string remote_address = 5 [(goby.field) = {
37  description: "Remote address to transfer data to"
38  example: "192.168.1.1"
39  }];
40  required uint32 remote_port = 6 [(goby.field) = {
41  description: "UDP port for remote endpoint"
42  example: "50001"
43  }];
44 
45  optional bool set_reuseaddr = 10 [default = false];
46  optional bool set_broadcast = 11 [default = false];
47  optional bool ipv6 = 12 [default = false];
48 }