-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from named-data-iot/refactor
Refactor forwarder
- Loading branch information
Showing
24 changed files
with
1,437 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
target_sources(ndn-lite PUBLIC | ||
${DIR_ADAPTATION}/adapt-consts.h | ||
${DIR_ADAPTATION}/udp/udp-face.h | ||
) | ||
target_sources(ndn-lite PRIVATE | ||
${DIR_ADAPTATION}/uniform-time.c | ||
${DIR_ADAPTATION}/udp/udp-face.c | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
set(DIR_EXAMPLES_OUTPUT "${PROJECT_BINARY_DIR}/examples") | ||
|
||
# Single-file examples | ||
set(LIST_EXAMPLES | ||
"udp-basic-producer" | ||
"udp-basic-consumer" | ||
# "udp-group-producer" | ||
# "udp-group-consumer" | ||
# "access-control-producer" | ||
# "access-control-consumer" | ||
# "access-control-controller" | ||
) | ||
foreach(EXAM_NAME IN LISTS LIST_EXAMPLES) | ||
add_executable(${EXAM_NAME} "${DIR_EXAMPLES}/${EXAM_NAME}.c") | ||
target_link_libraries(${EXAM_NAME} ndn-lite) | ||
set_target_properties(${EXAM_NAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${DIR_EXAMPLES_OUTPUT}) | ||
endforeach() | ||
unset(LIST_EXAMPLES) | ||
|
||
unset(DIR_EXAMPLES_OUTPUT) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
set(DIR_FACE "${DIR_NDN_LITE}/face") | ||
target_sources(ndn-lite PUBLIC | ||
${DIR_FACE}/direct-face.h | ||
${DIR_FACE}/dummy-face.h | ||
) | ||
target_sources(ndn-lite PRIVATE | ||
${DIR_FACE}/direct-face.c | ||
${DIR_FACE}/dummy-face.c | ||
) | ||
unset(DIR_FACE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
set(DIR_FORWARDER "${DIR_NDN_LITE}/forwarder") | ||
target_sources(ndn-lite PUBLIC | ||
${DIR_FORWARDER}/callback-funcs.h | ||
${DIR_FORWARDER}/face-table.h | ||
${DIR_FORWARDER}/face.h | ||
${DIR_FORWARDER}/fib.h | ||
${DIR_FORWARDER}/forwarder.h | ||
${DIR_FORWARDER}/name-tree.h | ||
${DIR_FORWARDER}/pit.h | ||
) | ||
target_sources(ndn-lite PRIVATE | ||
${DIR_FORWARDER}/face.c | ||
${DIR_FORWARDER}/face-table.c | ||
${DIR_FORWARDER}/fib.c | ||
${DIR_FORWARDER}/forwarder.c | ||
${DIR_FORWARDER}/name-tree.c | ||
${DIR_FORWARDER}/pit.c | ||
) | ||
unset(DIR_FORWARDER) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.