13 #include <boost/noncopyable.hpp>
14 #include <boost/shared_ptr.hpp>
54 static const uint32_t
MARKER = 0xDEADBEEF;
WatchSocketError(const char *file, size_t line, const char *what)
void clearReady()
Clears the socket's ready to read marker.
boost::shared_ptr< WatchSocket > WatchSocketPtr
Defines a smart pointer to an instance of a WatchSocket.
WatchSocket()
Constructor.
static const uint32_t MARKER
Value written to the source when marking the socket as ready.
int getSelectFd()
Returns the file descriptor to use to monitor the socket.
bool closeSocket(std::string &error_string)
Closes the descriptors associated with the socket.
Provides an IO "ready" semaphore for use with select() or poll() WatchSocket exposes a single open fi...
virtual ~WatchSocket()
Destructor.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
void markReady()
Marks the select-fd as ready to read.
This is a base class for exceptions thrown from the DNS library module.
Defines the logger used by the top-level component of kea-dhcp-ddns.
Exception thrown if an error occurs during IO source open.
static const int SOCKET_NOT_VALID
Value used to signify an invalid descriptor.
bool isReady()
Returns true the if socket is marked as ready.