mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-27 23:41:18 +01:00
net/rdcli: new module structure and high-level doc
This commit is contained in:
parent
917548f37c
commit
f0b0e25254
@ -128,13 +128,13 @@ ifneq (,$(filter skald,$(USEMODULE)))
|
||||
DIRS += net/skald
|
||||
endif
|
||||
ifneq (,$(filter rdcli_common,$(USEMODULE)))
|
||||
DIRS += net/application_layer/rdcli_common
|
||||
DIRS += net/application_layer/cord/common
|
||||
endif
|
||||
ifneq (,$(filter rdcli_simple,$(USEMODULE)))
|
||||
DIRS += net/application_layer/rdcli_simple
|
||||
DIRS += net/application_layer/cord/epsim
|
||||
endif
|
||||
ifneq (,$(filter rdcli,$(USEMODULE)))
|
||||
DIRS += net/application_layer/rdcli
|
||||
DIRS += net/application_layer/cord/ep
|
||||
endif
|
||||
|
||||
|
||||
|
||||
@ -1 +1,3 @@
|
||||
MODULE = rdcli_common
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
||||
65
sys/net/application_layer/cord/doc.txt
Normal file
65
sys/net/application_layer/cord/doc.txt
Normal file
@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright (C) 2018 Freie Universität Berlin
|
||||
*
|
||||
* This file is subject to the terms and conditions of the GNU Lesser
|
||||
* General Public License v2.1. See the file LICENSE in the top level
|
||||
* directory for more details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @defgroup net_cord CoRE RD Endpoint and Lookup Client
|
||||
* @ingroup net
|
||||
* @brief Library for interacting as endpoint and lookup client with CoRE
|
||||
* Resource Directories
|
||||
*
|
||||
* # About
|
||||
* The `cord` ([Co]RE [R]esource [D]irectory) module provides endpoint and
|
||||
* lookup client functionality for interacting with CoRE Resource Directories
|
||||
* (RDs) as defined in `draft-ietf-core-resource-directory-15`.
|
||||
*
|
||||
* @see https://tools.ietf.org/html/draft-ietf-core-resource-directory-15
|
||||
*
|
||||
* `draft-ietf-core-resource-directory-15` defines two types different roles for
|
||||
* nodes when interacting with a RD:
|
||||
* - `endpoint`: registers and manages entries at the RD
|
||||
* - `client`: performs different kind of lookups
|
||||
*
|
||||
* ```
|
||||
* Registration Lookup, Group
|
||||
* Interface Interfaces
|
||||
* +----+ | |
|
||||
* | EP |---- | |
|
||||
* +----+ ---- | |
|
||||
* --|- +------+ |
|
||||
* +----+ | ----| | | +--------+
|
||||
* | EP | ---------|-----| RD |----|-----| Client |
|
||||
* +----+ | ----| | | +--------+
|
||||
* --|- +------+ |
|
||||
* +----+ ---- | |
|
||||
* | EP |---- | |
|
||||
* +----+
|
||||
* ```
|
||||
* Figure copied form `draft-ietf-core-resource-directory-15`.
|
||||
*
|
||||
* @note In the context of this module, we refer to these roles as `endpoint
|
||||
* (ep)` and `lookup client (lc)`. This should hopefully prevent some
|
||||
* confusion in conjunction with the `client` and `server` roles as
|
||||
* defined by CoAP.
|
||||
*
|
||||
* # Structure
|
||||
*
|
||||
* This module is structured in a number of submodules with goal to reflect the
|
||||
* different roles described in `draft-ietf-core-resource-directory-15`:
|
||||
*
|
||||
* - `cord_ep`: standard endpoint implementation following the rules as
|
||||
* defined i.a. in sections 5.2, 5.3, A.1, and A.2
|
||||
* - `cord_epsim`: endpoint implementation following the simple registration
|
||||
* procedure as defined in section 5.3.1
|
||||
* - `cord_lc`: lookup client implementation for querying information from
|
||||
* an RD using the lookup and group interfaces (**NOT
|
||||
* YET IMPLEMENTED**)
|
||||
* - `cord_config`: header file collection (default) configuration values used
|
||||
* throughout this module
|
||||
* - `cord_common`: shared functionality used by the above submodules
|
||||
*
|
||||
*/
|
||||
@ -1,3 +1,5 @@
|
||||
MODULE = rdcli
|
||||
|
||||
SRC = rdcli.c
|
||||
|
||||
ifneq (,$(filter rdcli_standalone,$(USEMODULE)))
|
||||
@ -1,3 +1,5 @@
|
||||
MODULE = rdcli_simple
|
||||
|
||||
SRC = rdcli_simple.c
|
||||
|
||||
ifneq (,$(filter rdcli_simple_standalone,$(USEMODULE)))
|
||||
Loading…
x
Reference in New Issue
Block a user