Skip to content

Commit

Permalink
Problem: address parsing code is tied to the TCP code
Browse files Browse the repository at this point in the history
Solution: Factor the code into a different file with a well defined API and add
unit tests.
  • Loading branch information
simias committed Apr 30, 2018
1 parent 5210fa4 commit 003e2d1
Show file tree
Hide file tree
Showing 9 changed files with 1,440 additions and 660 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,7 @@ set (cxx-sources
udp_address.cpp
scatter.cpp
gather.cpp
ip_resolver.cpp
zap_client.cpp
# at least for VS, the header files must also be listed
address.hpp
Expand Down
4 changes: 3 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,9 @@ if ENABLE_STATIC
test_apps += \
unittests/unittest_poller \
unittests/unittest_ypipe \
unittests/unittest_mtrie
unittests/unittest_mtrie \
unittests/unittest_ip_resolver \
unittests/unittest_ip_resolver_dns

unittests_unittest_poller_SOURCES = unittests/unittest_poller.cpp
unittests_unittest_poller_CPPFLAGS = -I$(top_srcdir)/src ${UNITY_CPPFLAGS} $(CODE_COVERAGE_CPPFLAGS)
Expand Down
Loading

0 comments on commit 003e2d1

Please sign in to comment.