23 UdpClient(asio::io_context &IOContext, asio::ip::udp::endpoint &serverEndpoint,
54 asio::io_context &_IOContext;
55 asio::ip::udp::endpoint &_serverEndpoint;
56 std::unordered_map<uint8_t,
Definition: ACommunication.hpp:20
Definition: UdpClient.hpp:21
void handleControllableComponent(struct RType::Protocol::HeaderDataPacket header, unsigned short port)
Definition: UdpClient.cpp:50
~UdpClient()
Definition: UdpClient.cpp:39
void handleCollisionComponent(struct RType::Protocol::HeaderDataPacket header, unsigned short port)
Definition: UdpClient.cpp:98
void run()
Launch the Udp Client.
Definition: UdpClient.cpp:144
void handleString(struct RType::Protocol::HeaderDataPacket header, unsigned short port)
Handle String.
Definition: UdpClient.cpp:108
UdpClient(asio::io_context &IOContext, asio::ip::udp::endpoint &serverEndpoint, SafeQueue< struct RType::Event > &eventQueue)
Definition: UdpClient.cpp:11
void handleEndGame(struct RType::Protocol::HeaderDataPacket header, unsigned short port)
Definition: UdpClient.cpp:41
void handleData(struct RType::Protocol::HeaderDataPacket &, unsigned short port)
Handle the data depends of the header.
Definition: UdpClient.cpp:130
void handleDisconnexion(struct RType::Protocol::HeaderDataPacket header, unsigned short port)
Handle Disconnexion.
Definition: UdpClient.cpp:121
void handleTextureComponent(struct RType::Protocol::HeaderDataPacket header, unsigned short port)
Definition: UdpClient.cpp:88
void handleScore(struct RType::Protocol::HeaderDataPacket header, unsigned short port)
Definition: UdpClient.cpp:70
void sendDataInformation(std::vector< std::byte > dataInformation, uint8_t packetType)
Function that will send information to the server.
Definition: UdpClient.cpp:138
void handleTransformComponent(struct RType::Protocol::HeaderDataPacket header, unsigned short port)
Definition: UdpClient.cpp:60
void handleTextureState(struct RType::Protocol::HeaderDataPacket header, unsigned short port)
Definition: UdpClient.cpp:79
Definition: RTypeClient.hpp:20