Kea
3.1.5
ready_check.cc
Go to the documentation of this file.
1
// Copyright (C) 2025 Internet Systems Consortium, Inc. ("ISC")
2
//
3
// This Source Code Form is subject to the terms of the Mozilla Public
4
// License, v. 2.0. If a copy of the MPL was not distributed with this
5
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7
#include <config.h>
8
9
#include <
util/fd_event_handler_factory.h
>
10
11
namespace
isc
{
12
namespace
util
{
13
14
int
selectCheck
(
const
int
fd_to_check,
const
unsigned
int
timeout_sec) {
15
FDEventHandlerPtr
handler =
FDEventHandlerFactory::factoryFDEventHandler
();
16
handler->add(fd_to_check);
17
return
(handler->waitEvent(timeout_sec, 0));
18
}
19
20
}
// end of isc::util namespace
21
}
// end of isc namespace
isc::util::FDEventHandlerFactory::factoryFDEventHandler
static FDEventHandlerPtr factoryFDEventHandler()
Return an FDEventhandler.
Definition
fd_event_handler_factory.cc:22
fd_event_handler_factory.h
isc::util
Definition
time_utils.cc:43
isc::util::selectCheck
int selectCheck(const int fd_to_check, const unsigned int timeout_sec)
Definition
ready_check.cc:14
isc::util::FDEventHandlerPtr
boost::shared_ptr< FDEventHandler > FDEventHandlerPtr
Shared pointer to an FD event handler.
Definition
fd_event_handler.h:76
isc
Defines the logger used by the top-level component of kea-lfc.
Definition
agent_parser.cc:148
src
lib
util
ready_check.cc
Generated on Thu Nov 27 2025 21:35:40 for Kea by
1.13.2