34 #ifndef ASYNC_UDP_SOCKET_INCLUDED
35 #define ASYNC_UDP_SOCKET_INCLUDED
44 #include <sigc++/sigc++.h>
147 bool initOk(
void)
const {
return (sock != -1); }
157 bool write(
const IpAddress& remote_ip,
int remote_port,
const void *buf,
181 UdpPacket * send_buf;
184 void handleInput(
FdWatch *watch);
SigC::Signal3< void, const IpAddress &, void *, int > dataReceived
A signal that is emitted when data has been received.
SigC::Signal1< void, bool > sendBufferFull
A signal that is emitted when the send buffer is full.
~UdpSocket(void)
Destructor.
bool write(const IpAddress &remote_ip, int remote_port, const void *buf, int count)
Write data to the remote host.
bool initOk(void) const
Check if the initialization was ok.
UdpSocket(uint16_t local_port=0)
Constructor.
A class for watching file descriptors.
A class for working with UDP sockets.
A class for representing an IP address in an OS independent way.