mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-03 00:15:49 +03:00
coap_io.h: define flag to indicate that data is available
Non-blocking sockets can set COAP_ENDPOINT_HAS_DATA in flags to tell coap_read() that this endpoint has new data available for reading.
This commit is contained in:
1 parent
3d7c0d22ea
commit
73aa574f16
1 file changed
+4
-2
@@ -55,8 +55,10 @@ typedef struct coap_endpoint_t {
|
||||
int flags;
|
||||
} coap_endpoint_t;
|
||||
|
||||
#define COAP_ENDPOINT_NOSEC 0x00
|
||||
#define COAP_ENDPOINT_DTLS 0x01
|
||||
#define COAP_ENDPOINT_NOSEC 0x0000
|
||||
#define COAP_ENDPOINT_DTLS 0x0001
|
||||
|
||||
#define COAP_ENDPOINT_HAS_DATA 0x1000
|
||||
|
||||
coap_endpoint_t *coap_new_endpoint(const coap_address_t *addr, int flags);
|
||||
|
||||
|
||||
Reference in new issue
Block a user