]> git.ipfire.org Git - thirdparty/kea.git/commit
[#260,!120] Extracted IfaceMgr thread bits into new class, isc::dhcp::Receiver
authorThomas Markwalder <tmark@isc.org>
Thu, 15 Nov 2018 20:38:57 +0000 (15:38 -0500)
committerThomas Markwalder <tmark@isc.org>
Thu, 15 Nov 2018 20:38:57 +0000 (15:38 -0500)
commit88b5f25a62be2d45bc2f2626abf00b3ceb54591f
tree33485867413c5da0f0b983065808c4127ef291cf
parentd34c2a745de2407cad340dc4210e11f4975f81f6
[#260,!120] Extracted IfaceMgr thread bits into new class, isc::dhcp::Receiver

src/lib/dhcp/iface_mgr.*
    Extracted the thread, watch sockets, mutex, and error message members
    from IfaceMgr and wrapped them in a new class, isc:dhcp::Receiver.

    IfaceMgr::add_fd(int fd, int& maxfd, fd_set* sockets) - new
    convenience method for adding descriptors to fd_set(s)

src/lib/dhcp/tests/iface_mgr_unittest.cc
    class ReceiverTest - new test fixture
    TEST_F(ReceiverTest, receiverClassBasics)  - new unit test
src/lib/dhcp/iface_mgr.cc
src/lib/dhcp/iface_mgr.h
src/lib/dhcp/tests/iface_mgr_unittest.cc