155                     void *result, 
size_t maxlen);
 
CoRE Link Format encoding and decoding library public definitions.
 
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.
 
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.
 
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.
 
struct cord_lc_filter cord_lc_filter_t
Filters to use for a lookup.
 
@ CORD_LC_TIMEOUT
no response from the network
 
@ CORD_LC_NORSC
lookup interface not found
 
@ CORD_LC_OVERFLOW
internal buffers can not handle input
 
@ CORD_LC_OK
everything went as expected
 
@ CORD_LC_ERR
internal error or invalid reply
 
@ CORD_LC_RES
Resource lookup type.
 
@ CORD_LC_EP
Endpoint lookup type.
 
Common IP-based transport layer end point.
 
Link format attribute descriptor.
 
Filters to use for a lookup.
 
struct cord_lc_filter * next
Next set of filters.
 
clif_attr_t * array
Array of filter(s)
 
Information about RD server and its lookup interface resources.
 
unsigned res_last_page
Page of last resource lookup.
 
const sock_udp_ep_t * remote
Remote endpoint of RD server.
 
char * res_lookif
Resource lookup interface.
 
unsigned ep_last_page
Page of last endpoint lookup.
 
char * ep_lookif
Endpoint lookup interface.
 
size_t max_attrs
Max parameters at params.
 
clif_attr_t * attrs
Array of Link Format parameters.
 
clif_t link
Resource link.