Kea 3.2.1-git
fd_event_handler_factory.cc
Go to the documentation of this file.
1// Copyright (C) 2025-2026 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
14
15#include <cstdlib>
16#include <string>
17
18using namespace std;
19
20namespace isc {
21namespace util {
22
24 // todo: use configuration to initialize the FDEventHandler.
26 const char* env_type = getenv("KEA_EVENT_HANDLER_TYPE");
27 if (env_type) {
28 if (string(env_type) == string("select")) {
30 }
31 if (string(env_type) == string("poll")) {
33 }
34 }
35 switch(type) {
39 return (FDEventHandlerPtr(new PollEventHandler()));
40 default:
42 }
44}
45
46} // end of namespace isc::util
47} // end of namespace isc
static FDEventHandlerPtr factoryFDEventHandler()
Return an FDEventhandler.
boost::shared_ptr< FDEventHandler > FDEventHandlerPtr
Shared pointer to an FD event handler.
Defines the logger used by the top-level component of kea-lfc.