net/rdcli*: restructure and rename RD related modules#10163
net/rdcli*: restructure and rename RD related modules#10163miri64 merged 8 commits intoRIOT-OS:masterfrom
Conversation
miri64
left a comment
There was a problem hiding this comment.
LGTM. Some minor comments though.
examples/cord_ep/README.md
Outdated
| ``` | ||
| CFLAGS += "-DCORD_EP=\"MyNewEpName\"" | ||
| ``` | ||
|
|
There was a problem hiding this comment.
Git is complaining about this whitespace.
examples/cord_ep/README.md
Outdated
|
|
||
| This example application demonstrates the usage of RIOT's Resource Directory | ||
| (RD) endpoint module, called `cord_ep`. This module supports the registration, | ||
| update, and removal procedures as defined in the |
There was a problem hiding this comment.
Wording: "in the draft-ietf-core-…" sound's clunky (might be an artifact from the previous version where it was "in the […] draft".
examples/cord_ep/README.md
Outdated
| Some connection parameters are configured statically during compile time, | ||
| namely the lifetime (`CORD_LT`) and the node's endpoint name (`CORD_EP`). You | ||
| can change these values at compile time by overriding their defines: | ||
| Using command line arguments: |
There was a problem hiding this comment.
"overriding their defines using command line arguments"
| /** | ||
| * @brief Spawn a new thread that registers the node and updates the | ||
| * registration with all responding RDs using the simple registration | ||
| * process |
There was a problem hiding this comment.
The #if defined(MODULE_CORD_EPSIM_STANDALONE) is new and should be documented:
/**
[…]
* @note Only available with @ref net_cord_ep_standalone compiled in.
*/391e647 to
c17dc9d
Compare
|
addressed comments and rebased. |
sys/include/net/cord/epsim.h
Outdated
| * process | ||
| * | ||
| * @note Only available with @ref cord_epsim_standalone compiled in | ||
| * @note This function must only be called once (typically during system |
There was a problem hiding this comment.
I think this should rather be a @warning or @attention even.
There was a problem hiding this comment.
@warning seems sensible. Will also adapt that in cord/ep_standalone.h.
|
addressed last comment. |
sys/include/net/cord/epsim.h
Outdated
| * registration with all responding RDs using the simple registration | ||
| * process | ||
| * | ||
| * @note Only available with @ref cord_epsim_standalone compiled in |
|
You can squash immediately. |
|
done |
15ba5ef to
9e8d626
Compare
9e8d626 to
34fa61d
Compare
|
fixed doxygen issue and squashed. |
Contribution description
As discussed in #7428: the Resource Directory endpoint implementations that we merged (i.e.
rdcliandrdcli_simple) use some naming conventions that are not in line with the wording used in draft-ietf-core-resource-directory-15.This PR restructures all existing resource directory code by applying a more clear, and extensible structure, while following the wording used in the draft.
I introduced a high-level module called
cord, which includes all the code related to interacting with resource directories. All existing (endpoint) and future (lookup client) code is put as submodules into this high level module. Seesys/net/application_layer/cord/doc.txtas included in this PR for more information on the high-level structure.Sorry for the amount of lines of code in this PR, but I think it does make sense to have all these changes in a single PR. I tried to do the changes in self-contained commits to make reviewing as easy as possible...
Testing procedure
Simply verify that the two example applications (now
cord_epandcord_epsim) are still working as expected.Also check the generated doxygen.
Issues/PRs references
#7428