39 void sendInformation(uint8_t packetType, std::vector<std::byte> dataToSend, asio::ip::udp::endpoint &endpoint);
55 std::map<unsigned short, asio::ip::udp::endpoint> &
getListClients();
59 unsigned short indexPlayer;
60 asio::steady_timer _timer;
61 asio::steady_timer _timerTCP;
62 asio::signal_set _signal;
64 asio::ip::udp::endpoint _clientEndpoint;
Definition: ACommunication.hpp:20
UdpServer Class that create a UDP server that client can connect to communicate.
Definition: UdpServer.hpp:27
void handleString(struct RType::Protocol::HeaderDataPacket header, unsigned short port)
Handle String that will be retrieve and push a event.
Definition: UdpServer.cpp:82
void handleConnexion(struct RType::Protocol::HeaderDataPacket header, unsigned short port)
Handle Connexion that will be retrieve and push a event.
Definition: UdpServer.cpp:100
void handleData(struct RType::Protocol::HeaderDataPacket &header, unsigned short port)
Handle the data depends of the header.
Definition: UdpServer.cpp:109
UdpServer(asio::io_context &IOContext, unsigned short port, SafeQueue< struct RType::Event > &eventQueue)
Definition: UdpServer.cpp:11
void run()
Start the UDP Server.
Definition: UdpServer.cpp:43
~UdpServer()
Definition: UdpServer.cpp:32
void handleInput(struct RType::Protocol::HeaderDataPacket header, unsigned short port)
Definition: UdpServer.cpp:45
void handleTextureResponse(struct RType::Protocol::HeaderDataPacket header, unsigned short port)
Definition: UdpServer.cpp:56
void handleCollisionResponse(struct RType::Protocol::HeaderDataPacket header, unsigned short port)
Definition: UdpServer.cpp:69
void sendInformation(uint8_t packetType, std::vector< std::byte > dataToSend, asio::ip::udp::endpoint &endpoint)
Function that will send informations to connected clients.
Definition: UdpServer.cpp:119
void handleDisconnexion(struct RType::Protocol::HeaderDataPacket header, unsigned short port)
Handle Disconnexion that will be retrieve and push a event.
Definition: UdpServer.cpp:89
std::map< unsigned short, asio::ip::udp::endpoint > & getListClients()
Definition: UdpServer.cpp:117
Definition: ClientSession.hpp:16