|
My Project
|
Class that handle Udp Communication. More...
#include <UdpCommunication.hpp>
Public Member Functions | |
| UdpCommunication ()=default | |
| Construct a new Udp Communication object. | |
| ~UdpCommunication () | |
| Destroy the Udp Communication object. | |
| UdpCommunication (asio::io_context &context, asio::ip::port_type const &port) | |
| Construct a new Udp Communication object. More... | |
| UdpCommunication (asio::io_context &context, asio::ip::port_type const &port, std::string const &connectionPort, std::string const &ip) | |
| Construct a new Udp Communication object. More... | |
| void | send (std::vector< byte > const &data) override |
| A method to send a message to the already known ip adress and port adress. More... | |
| void | send (std::vector< byte > const &data, asio::ip::address const &address, unsigned short const &port) override |
| A method to send a message to an ip adress and port adress. More... | |
| void | async_send (std::vector< byte > const &data, std::function< void(std::error_code const &, std::size_t)> callBack) override |
| A method to send a message to an already known ip adress and port adress in an async way. More... | |
| void | async_send (std::vector< byte > const &data, std::function< void(std::error_code const &, std::size_t)> callBack, asio::ip::address const &address, unsigned short const &port) override |
| A method to send a message to a ip adress and port adress in an async way. More... | |
| std::pair< asio::ip::address, unsigned short > | receive (std::vector< byte > &data) override |
| A method to receive a message. More... | |
| void | async_receive (std::vector< byte > &data, std::function< void(std::error_code const &, std::size_t)> callBack) override |
| A method to receive a message in an async way. More... | |
| std::pair< asio::ip::address, unsigned short > | getEnpointInfo () const override |
| Get the Enpoint Info object. More... | |
| void | setEnpointInfo (std::pair< asio::ip::address, unsigned short > const &endpointInfo) override |
| Set the Enpoint Info object. More... | |
| void | setEnpointInfo (asio::ip::address const &address, unsigned short const &port) override |
| Set the Enpoint Info object. More... | |
Public Member Functions inherited from IUdpCommunication | |
| virtual | ~IUdpCommunication ()=default |
| Destroy the IUdpCommunication object. | |
Class that handle Udp Communication.
|
inline |
Construct a new Udp Communication object.
| context | IO Context of the communication |
| port | Port where start the communication |
|
inline |
Construct a new Udp Communication object.
| context | IO Context of the communication |
| port | Port where start the communication |
| connectionPort | Port where connect the communication |
| ip | Ip address where connect the communication |
|
inlineoverridevirtual |
A method to receive a message in an async way.
| data | The buffer to fill when the message is received |
| callBack | The function called once the message is received |
Implements IUdpCommunication.
|
inlineoverridevirtual |
A method to send a message to an already known ip adress and port adress in an async way.
| data | The serilized |
| callBack | The function to call once the message is sent |
Implements IUdpCommunication.
|
inlineoverridevirtual |
A method to send a message to a ip adress and port adress in an async way.
| data | The serialized message |
| callBack | The function called once the message is sent |
| address | The ip adress to send the message |
| port | The port adress to send the message |
Implements IUdpCommunication.
|
inlineoverridevirtual |
Get the Enpoint Info object.
Implements IUdpCommunication.
|
inlineoverridevirtual |
A method to receive a message.
| data | The buffer to fill when the message is received |
Implements IUdpCommunication.
|
inlineoverridevirtual |
A method to send a message to the already known ip adress and port adress.
| data | The serialized message |
Implements IUdpCommunication.
|
inlineoverridevirtual |
A method to send a message to an ip adress and port adress.
| data | The serialized message |
| address | The ip adress to send the message |
| port | The port adress to send the message |
Implements IUdpCommunication.
|
inlineoverridevirtual |
Set the Enpoint Info object.
| address | Ip address of the endpoint |
| port | Port of the endpoint |
Implements IUdpCommunication.
|
inlineoverridevirtual |
Set the Enpoint Info object.
| endpointInfo | Pair with the ip address and the port of the endpoint |
Implements IUdpCommunication.
1.8.17