#include <udpsocket.h>
Definition at line 21 of file udpsocket.h.
Public Types | |
enum | eventType { READ = 0, WRITE, EXCEPTION } |
Public Member Functions | |
virtual bool | close () |
Closes the descriptor. | |
bool | dataPending (int sec, int usec) const |
Check if data are pending to read. | |
int | getDescriptor () const |
Returns the integer value which represents the descriptor by the underlying Operating System. | |
bool | operator< (const Descriptor &descriptor) const |
Lesser-operator on the descriptor base. | |
ssize_t | readNumBytes (unsigned char *buffer, size_t number) const |
bool | setBlocking () |
bool | setNonBlocking () |
bool | setReadTimeout (int sec, int usec) |
bool | setWriteTimeout (int sec, int usec) |
UDPSocket (uint16_t remotePort, std::string remoteInterfaceName, uint16_t localPort=0, std::string localInterfaceName="") | |
bool | writable (int sec, int usec) |
Static Public Member Functions | |
static bool | sendTo (uint16_t remotePort, std::string remoteInterface, unsigned char *data, size_t length) |
Protected Member Functions | |
virtual void | event (enum eventType et)=0 |
void | setDescriptor (int descriptor) |
Protected Attributes | |
std::string | localInterfaceName |
uint16_t | localPort |
std::string | remoteInterfaceName |
uint16_t | remotePort |