Loading...
Searching...
No Matches

CoRE Resource Directory lookup interface. More...

Detailed Description

CoRE Resource Directory lookup interface.

Author
Aiman Ismail muham.nosp@m.mada.nosp@m.imanb.nosp@m.in.i.nosp@m.smail.nosp@m.@haw.nosp@m.-hamb.nosp@m.urg..nosp@m.de

Definition in file lc.h.

#include "net/sock/udp.h"
#include "net/nanocoap.h"
#include "clif.h"
+ Include dependency graph for lc.h:

Go to the source code of this file.

Data Structures

struct  cord_lc_rd_t
 Information about RD server and its lookup interface resources. More...
 
struct  cord_lc_result
 Result of lookup. More...
 
struct  cord_lc_filter
 Filters to use for a lookup. More...
 

Typedefs

typedef struct cord_lc_result cord_lc_res_t
 Resource typedef.
 
typedef struct cord_lc_result cord_lc_ep_t
 Endpoint typedef.
 
typedef struct cord_lc_filter cord_lc_filter_t
 Filters to use for a lookup.
 

Enumerations

enum  {
  CORD_LC_OK = 0 , CORD_LC_TIMEOUT = -1 , CORD_LC_ERR = -2 , CORD_LC_OVERFLOW = -3 ,
  CORD_LC_NORSC = -4
}
 Return values and error codes used by this module. More...
 
enum  { CORD_LC_RES , CORD_LC_EP }
 RD lookup types. More...
 

Functions

int cord_lc_rd_init (cord_lc_rd_t *rd, void *buf, size_t maxlen, const sock_udp_ep_t *remote)
 Discover the lookup interfaces of a RD server.
 
ssize_t cord_lc_raw (const cord_lc_rd_t *rd, unsigned content_format, unsigned lookup_type, cord_lc_filter_t *filters, void *result, size_t maxlen)
 Raw lookup for registered resources/endpoints at a RD server.
 
ssize_t _lookup_result (cord_lc_rd_t *rd, cord_lc_res_t *result, cord_lc_filter_t *filters, void *buf, size_t maxlen, unsigned type)
 Get one resource from RD server.
 
static ssize_t cord_lc_res (cord_lc_rd_t *rd, cord_lc_res_t *resource, cord_lc_filter_t *filters, void *buf, size_t maxlen)
 Get one resource from RD server.
 
static ssize_t cord_lc_ep (cord_lc_rd_t *rd, cord_lc_ep_t *endpoint, cord_lc_filter_t *filters, void *buf, size_t maxlen)
 Get one endpoint from RD server.