DTNMA Reference Tools v2.1.0 - 13.gc5c0bac
Delay-Tolerant Networking Management Architecture (DTNMA) Tool Suite
Loading...
Searching...
No Matches
nm_rest.h File Reference
#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.
 

Macro Definition Documentation

◆ HTTP_BAD_REQUEST

#define HTTP_BAD_REQUEST   400

◆ HTTP_FORBIDDEN

#define HTTP_FORBIDDEN   403

◆ HTTP_INTERNAL_ERROR

#define HTTP_INTERNAL_ERROR   500

◆ HTTP_METHOD_NOT_ALLOWED

#define HTTP_METHOD_NOT_ALLOWED   405

◆ HTTP_NO_CONTENT

#define HTTP_NO_CONTENT   204

◆ HTTP_NO_SERVICE

#define HTTP_NO_SERVICE   503

◆ HTTP_NOT_FOUND

#define HTTP_NOT_FOUND   404

◆ HTTP_NOT_IMPLEMENTED

#define HTTP_NOT_IMPLEMENTED   501

◆ HTTP_OK

#define HTTP_OK   200

◆ HTTP_UNPROCESSABLE_CNT

#define HTTP_UNPROCESSABLE_CNT   422

◆ HTTP_UNSUP_MEDIA_TYPE

#define HTTP_UNSUP_MEDIA_TYPE   415

Function Documentation

◆ refdm_nm_rest_start()

int refdm_nm_rest_start ( struct mg_context **  ctx,
refdm_mgr_t mgr 
)

◆ refdm_nm_rest_stop()

void refdm_nm_rest_stop ( struct mg_context *  ctx)

Stop operation of the REST service.

Parameters
[in]ctxThe context to stop for.
See also
refdm_nm_rest_start()

References CHKVOID.

Referenced by refdm_mgr_stop().