mirror of
https://gitlab.isc.org/isc-projects/kea.git
synced 2025-12-20 00:53:34 +08:00
[#4248] Moved watch socket const init
This commit is contained in:
@@ -20,9 +20,9 @@
|
||||
namespace isc {
|
||||
namespace util {
|
||||
|
||||
const int WatchSocket::SOCKET_NOT_VALID = -1;
|
||||
|
||||
const int WatchSocket::SOCKET_NOT_VALID;
|
||||
const uint32_t WatchSocket::MARKER;
|
||||
const uint32_t WatchSocket::MARKER = 0xDEADBEEF;
|
||||
|
||||
WatchSocket::WatchSocket()
|
||||
: source_(SOCKET_NOT_VALID), sink_(SOCKET_NOT_VALID) {
|
||||
|
||||
@@ -47,11 +47,12 @@ public:
|
||||
class WatchSocket : public boost::noncopyable {
|
||||
public:
|
||||
/// @brief Value used to signify an invalid descriptor.
|
||||
static const int SOCKET_NOT_VALID = -1;
|
||||
static const int SOCKET_NOT_VALID /* = -1*/;
|
||||
|
||||
/// @brief Value written to the source when marking the socket as ready.
|
||||
/// The value itself is arbitrarily chosen as one that is unlikely to occur
|
||||
/// otherwise and easy to debug.
|
||||
static const uint32_t MARKER = 0xDEADBEEF;
|
||||
static const uint32_t MARKER /* = 0xDEADBEEF */;
|
||||
|
||||
/// @brief Constructor
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user