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