JayBeams  0.1
Another project to have fun coding.
udp_receiver_config.hpp
Go to the documentation of this file.
1 #ifndef jb_itch5_udp_receiver_config_hpp
2 #define jb_itch5_udp_receiver_config_hpp
3 
5 
6 namespace jb {
7 namespace itch5 {
8 
9 /**
10  * A configuration object for UDP receivers.
11  *
12  * The @a receive_address attribute the destination address for the
13  * messages that we want to receive. For unicast messages that must
14  * be one of the addresses of the host. For multicast messages that
15  * is simply the multicast group to receive, in this case, @a
16  * listen_address the local address for the socket. If @a
17  * listen_address is the empty string, the local address is guessed
18  * based on the value of @a receive_address: (a) for IPv4 multicast
19  * groups simply use 0.0.0.0, (b) for IPv6 multicast groups simply use
20  * ::1. It is an error to configure @a receive_address as a unicast
21  * address and also set @a listen_address.
22  */
24 public:
27 
28  void validate() const override;
29 
33 };
34 
35 } // namespace itch5
36 } // namespace jb
37 
38 #endif // jb_itch5_udp_receiver_config_hpp
jb::config_attribute< udp_receiver_config, std::string > address
jb::config_attribute< udp_receiver_config, std::string > local_address
jb::config_attribute< udp_receiver_config, int > port
Helper class to easily define configuration attributes.
Common configuration parameters for both UDP senders and receivers.
config_object_constructors(udp_receiver_config)
void validate() const override
Validate the settings.
A configuration object for UDP receivers.
The top-level namespace for the JayBeams library.
Definition: as_hhmmss.hpp:7