]> git.ipfire.org Git - thirdparty/kea.git/commit
[#691,!395] Add Connection socket exposure and close_callback handler
authorThomas Markwalder <tmark@isc.org>
Sat, 22 Jun 2019 15:38:55 +0000 (11:38 -0400)
committerThomas Markwalder <tmark@isc.org>
Thu, 27 Jun 2019 11:49:10 +0000 (07:49 -0400)
commit770aeae623c1c5f046149abeff50458175225731
tree23214c325995636173bd8f6b5c6c58e48703c7d8
parent9240a766ba93e3f5b937538171c798e3afaa56ae
[#691,!395] Add Connection socket exposure and close_callback handler

Addes close_callback and exposes Connectin's TCP socket to it
and connect_callback.

src/lib/http/client.h b/src/lib/http/client.h
    HttpClient:
        Added second parameter, socket FD, to ConnectHandler
        Added CloseHandler typedef

        asyncSendRequest() - added close_callback parameter

src/lib/http/client.cc
    Connection - added close_callback parameter to all
    methods that accept connect_callback parameter

    Added invocation of close_callback wherever the connection's
    socket is closed.

src/lib/http/tests/server_client_unittests.cc
    TEST_F(HttpClientTest, connectCloseCallbacks) - new test that
    verifies connect and close callback operations
configure.ac
src/lib/http/client.cc
src/lib/http/client.h
src/lib/http/tests/server_client_unittests.cc