TraveSim Adapters  0.1
Protobuf adapters for TraveSim project
unicast_sender.hpp
Go to the documentation of this file.
1 /**
2  * @file unicast_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 unicast mode
8  *
9  * @date 04/2021
10  *
11  * @copyright MIT License - Copyright (c) 2021 ThundeRatz
12  */
13 
15 
16 #ifndef __UNICAST_SENDER_H__
17 #define __UNICAST_SENDER_H__
18 
19 namespace travesim {
20 namespace udp {
21 /**
22  * @brief Sender class using UDP in unicast mode
23  */
25  public Sender {
26  public:
27  /**
28  * @brief Construct a new UnicastSender object
29  *
30  * @param receiver_address Address where to send data
31  * @param receiver_port Port where to send data
32  *
33  * @note The unicast addresses must be in the block 127.0.0.0/8, see
34  * [IANA IPv4 Address Space Registry]
35  * (https://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml)
36  * or the [RFC6890](https://tools.ietf.org/html/rfc6890) for more informations.
37  */
38  UnicastSender(const std::string receiver_address, const short receiver_port);
39 };
40 } // namespace udp
41 } // namespace travesim
42 
43 #endif // __UNICAST_SENDER_H__
Send data using UDP.
UnicastSender(const std::string receiver_address, const short receiver_port)
Construct a new UnicastSender object.
Sender class using UDP in unicast mode.
Sender class using UDP.
Definition: sender.hpp:25