TraveSim Adapters  0.1
Protobuf adapters for TraveSim project
multicast_sender.hpp
Go to the documentation of this file.
1 /**
2  * @file multicast_sender.hpp
3  *
4  * @author Lucas Haug <lucas.haug@thuneratz.org>
5  * @author Lucas Schneider <lucas.schneider@thuneratz.org>
6  *
7  * @brief Send data using UDP in multicast mode
8  *
9  * @date 04/2021
10  *
11  * @copyright MIT License - Copyright (c) 2021 ThundeRatz
12  */
13 
15 
16 #ifndef __MULTICAST_SENDER_H__
17 #define __MULTICAST_SENDER_H__
18 
19 namespace travesim {
20 namespace udp {
21 /**
22  * @brief Sender class using UDP in multicast mode
23  */
25  public Sender {
26  public:
27  /**
28  * @brief Construct a new Multicast Sender object
29  *
30  * @param multicast_address Multicas group address
31  * @param multicast_port Multicas group port
32  *
33  * @note The multicast addresses must be in the range 224.0.0.0 through
34  * 239.255.255.255, see multicast [IPv4 Multicast Address Space Registry]
35  * (https://www.iana.org/assignments/multicast-addresses/multicast-addresses.xhtml)
36  * or the [RFC1112](https://tools.ietf.org/html/rfc1112) for more informations.
37  */
38  MulticastSender(const std::string multicast_address, const short multicast_port);
39 };
40 } // namespace udp
41 } // namespace travesim
42 
43 #endif // __MULTICAST_SENDER_H__
MulticastSender(const std::string multicast_address, const short multicast_port)
Construct a new Multicast Sender object.
Send data using UDP.
Sender class using UDP in multicast mode.
Sender class using UDP.
Definition: sender.hpp:25