hash.h 396 B

1234567891011121314151617181920212223
  1. #ifndef _HASH_H
  2. #define _HASH_H 1
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #include "coap.h"
  7. typedef unsigned char coap_key_t[4];
  8. /* CoAP transaction id */
  9. /*typedef unsigned short coap_tid_t; */
  10. typedef int coap_tid_t;
  11. #define COAP_INVALID_TID -1
  12. void coap_transaction_id(const uint32_t ip, const uint32_t port, const coap_packet_t *pkt, coap_tid_t *id);
  13. #ifdef __cplusplus
  14. }
  15. #endif
  16. #endif