|
DTNMA Reference Tools v2.1.0 - 13.gc5c0bac
Delay-Tolerant Networking Management Architecture (DTNMA) Tool Suite
|
#include "mgr.h"
Include dependency graph for nm_rest.h:
This graph shows which files directly or indirectly include this file:Macros | |
| #define | HTTP_OK 200 |
| #define | HTTP_NO_CONTENT 204 |
| #define | HTTP_BAD_REQUEST 400 |
| #define | HTTP_FORBIDDEN 403 |
| #define | HTTP_NOT_FOUND 404 |
| #define | HTTP_METHOD_NOT_ALLOWED 405 |
| #define | HTTP_UNSUP_MEDIA_TYPE 415 |
| #define | HTTP_UNPROCESSABLE_CNT 422 |
| #define | HTTP_INTERNAL_ERROR 500 |
| #define | HTTP_NOT_IMPLEMENTED 501 |
| #define | HTTP_NO_SERVICE 503 |
Functions | |
| int | refdm_nm_rest_start (struct mg_context **ctx, refdm_mgr_t *mgr) |
| Begin operation of the REST service. | |
| void | refdm_nm_rest_stop (struct mg_context *ctx) |
| Stop operation of the REST service. | |
| #define HTTP_BAD_REQUEST 400 |
| #define HTTP_FORBIDDEN 403 |
| #define HTTP_INTERNAL_ERROR 500 |
| #define HTTP_METHOD_NOT_ALLOWED 405 |
| #define HTTP_NO_CONTENT 204 |
| #define HTTP_NO_SERVICE 503 |
| #define HTTP_NOT_FOUND 404 |
| #define HTTP_NOT_IMPLEMENTED 501 |
| #define HTTP_OK 200 |
| #define HTTP_UNPROCESSABLE_CNT 422 |
| #define HTTP_UNSUP_MEDIA_TYPE 415 |
| int refdm_nm_rest_start | ( | struct mg_context ** | ctx, |
| refdm_mgr_t * | mgr | ||
| ) |
Begin operation of the REST service.
| [out] | ctx | The context to store into. |
References agentEidClearReportsHandler(), agentEidReportsHandler(), agentEidSendHandler(), agentIdxClearReportsHandler(), agentIdxReportsHandler(), agentIdxSendHandler(), AGENTS_EID_PREFIX, AGENTS_IDX_PREFIX, AGENTS_URI, agentsHandler(), CACE_LOG_ERR, CACE_LOG_INFO, CHKERR1, log_message(), mgr, VERSION_URI, and versionHandler().
Referenced by refdm_mgr_start().
| void refdm_nm_rest_stop | ( | struct mg_context * | ctx | ) |
Stop operation of the REST service.
| [in] | ctx | The context to stop for. |
References CHKVOID.
Referenced by refdm_mgr_stop().