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
10
11namespace isc {
12namespace util {
13
14int selectCheck(const int fd_to_check, const unsigned int timeout_sec) {
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
static FDEventHandlerPtr factoryFDEventHandler()
Return an FDEventhandler.
int selectCheck(const int fd_to_check, const unsigned int timeout_sec)
boost::shared_ptr< FDEventHandler > FDEventHandlerPtr
Shared pointer to an FD event handler.
Defines the logger used by the top-level component of kea-lfc.