ndn-lite
Functions
wrapper-api.c File Reference
#include "wrapper-api.h"
#include "forwarder-helper.h"
#include "tlv.h"
#include "../ndn-error-code.h"
#include "../ndn-constants.h"
#include <string.h>
#include <stdarg.h>
#include <limits.h>
#include "data.h"
#include "interest.h"
#include "signed-interest.h"

Functions

void tlv_encode_segno (name_component_t *comp, uint64_t val)
 Encode a name component from a segment number. More...
 
uint64_t tlv_decode_segno (name_component_t *comp)
 Decode a name component into a segment number. More...
 
int tlv_make_data (uint8_t *buf, size_t buflen, size_t *result_size, int argc,...)
 All-in-one function to generate a Data packet. More...
 
int tlv_parse_data (uint8_t *buf, size_t buflen, int argc,...)
 All-in-one function to parse a Data packet. More...
 
int tlv_make_interest (uint8_t *buf, size_t buflen, size_t *result_size, int argc,...)
 All-in-one function to generate an Interest packet. More...
 
int tlv_parse_interest (uint8_t *buf, size_t buflen, int argc,...)
 All-in-one function to parse an Interest packet. More...