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