#ifndef UDPCLIENT_H #define UDPCLIENT_H #include #include #include namespace Network { class UdpClientImpl; class UdpClient { public: UdpClient(const std::string& listenAddress, const std::string& targetAddress, int targetPort, std::function callback); ~UdpClient(); public: void Receive(); std::string Send(const std::string& data, int sourcePort = 0); void Broadcast(const std::string& data, int sourcePort = 0); private: std::unique_ptr m_pUdpClientImpl; }; } // namespace Network #endif // UDPCLIENT_H