Documentation
Includes
libcoap.h
#include "libcoap.h"
uthash.h
#include "uthash.h"
str.h
#include "str.h"
Macros
Marco COAP_HASHKEY_H_
#define COAP_HASHKEY_H_
Marco coap_hash(String,Length,Result)
#define coap_hash(String,Length,Result) \
coap_hash_impl((String),(Length),(Result))
Marco COAP_DEFAULT_HASH
#define COAP_DEFAULT_HASH
Marco coap_str_hash(Str,H)
#define coap_str_hash(Str,H) { \
assert(Str); \
memset((H), 0, sizeof(coap_key_t)); \
coap_hash((Str)->s, (Str)->length, (H)); \
}
Functions
Func coap_hash_impl
void coap_hash_impl(const unsigned char *s, unsigned int len, coap_key_t h);
Vars
Consts
Types
Typedefs
Typedef coap_key_t[4]
typedef unsigned char coap_key_t[4];