JayBeams  0.1
Another project to have fun coding.
udp_sender_config.cpp
Go to the documentation of this file.
2 
3 namespace jb {
4 namespace itch5 {
5 
8  , port(desc("port").help("Set the UDP port to send messages to."), this, 0)
9  , address(
10  desc("address").help("Set the UDP address to send messages to."
11  " The address can be any combination of IPv4 "
12  "vs. IPv6 and unicast vs. multicast."),
13  this, "")
14  , enable_loopback(
15  desc("enable-loopback")
16  .help("Set the IP_MULTICAST_LOOP socket "
17  "option, allowing outgoing multicast "
18  "messages to be received by programs in "
19  "the same host."),
20  this, false)
21  , hops(
22  desc("hops").help(
23  "Set the IP_MULTICAST_TTL or IP_TTL option for the socket."
24  " By default, or if set to -1, the system default value is "
25  "used."),
26  this, -1)
27  , outbound_interface(
28  desc("outbound-interface")
29  .help("Set the outbound interface for outgoing multicast "
30  "messages. "
31  "When using IPv4, this must be the IP address of the "
32  "outgoing interface. "
33  "When using IPv6, this must be the interface index."),
34  this, "")
35  , broadcast(
36  desc("broadcast").help("Set the SO_BROADCAST option for the socket."),
37  this, false) {
38 }
39 
40 } // namespace itch5
41 } // namespace jb
Common configuration parameters for both UDP senders and receivers.
The top-level namespace for the JayBeams library.
Definition: as_hhmmss.hpp:7