UDP Socket Class that allows to create a udp socket with custom listener and timeout for response.

#include <udpSocket.h>

Public Member Functions

void open (const unsigned short LocalPort=0)
 
bool isOpened () const
 
void set_sender_handler (const F_SEND &f)
 
void set_listener_handler (const F_LISTEN &f)
 
bool send (boost::system::error_code &ec, std::string DestIp, unsigned short DestPort, const char *msg_content, size_t msg_bytes)
 
void close (boost::system::error_code &ec)