Kea 3.1.5
fd_event_handler_factory.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
14
15#include <string>
16
17using namespace std;
18
19namespace isc {
20namespace util {
21
23 // todo: use configuration to initialize the FDEventHandler.
25 const char* env_type = getenv("KEA_EVENT_HANDLER_TYPE");
26 if (env_type) {
27 if (string(env_type) == string("select")) {
29 }
30 if (string(env_type) == string("poll")) {
32 }
33 }
34 switch(type) {
38 return (FDEventHandlerPtr(new PollEventHandler()));
39 default:
41 }
43}
44
45} // end of namespace isc::util
46} // end of namespace isc
static FDEventHandlerPtr factoryFDEventHandler()
Return an FDEventhandler.
File descriptor event handler class handles events for registered file descriptors.
File descriptor event handler class handles events for registered file descriptors.
boost::shared_ptr< FDEventHandler > FDEventHandlerPtr
Shared pointer to an FD event handler.
Defines the logger used by the top-level component of kea-lfc.