mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-21 06:49:05 +03:00
Fix for the signedness warning with gcc.
Compact coap_address_t. Use coap_queue_t for all queues. OpenSSL warning for close alert should be info level. Fix OpenSSL log level not working. Use the application defined MTU in OpenSSL. coap_log() optimization to avoid generating the log message text before testing the log level. coap_can_exit() should check the new retransmit queues. Fix retransmit time sometimes not correctly computed relative to sendqueue_basetime. Add coap_write() API call for applications with their own main loop.
This commit is contained in:
1 parent
4d4f3ba54f
commit
7fb4ace2b7
15 files changed
+407
-288
No files matched your search
@@ -55,7 +55,7 @@ const char *coap_package_version(void);
|
||||
void coap_log_impl(coap_log_t level, const char *format, ...);
|
||||
|
||||
#ifndef coap_log
|
||||
#define coap_log(...) coap_log_impl(__VA_ARGS__)
|
||||
#define coap_log(level, ...) do { if ((level)<=coap_get_log_level()) coap_log_impl((level), __VA_ARGS__); } while(0)
|
||||
#endif
|
||||
|
||||
/* A set of convenience macros for common log levels. */
|
||||
|
||||
Reference in new issue
Block a user