]> 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>
Tue, 20 Nov 2018 18:25:03 +0000 (13:25 -0500)
commit99ce2f4bc5c7f4ebab498bb081a22832e32be7ef
treea95c7566c62605cc3a436e72c04e658692037eeb
parent924a4f468008853de61fbc300f1a9ffb1032f06e
[#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