mirror of
https://github.com/obgm/libcoap.git
synced 2026-12-05 20:02:19 +03:00
Merge pull request #645 from mrdeep1/mcast_delay
Multicast: Add in response delay
This commit is contained in:
7 files changed
+73
-30
No files matched your search
@@ -77,20 +77,20 @@ void
|
||||
coap_free_async(coap_context_t *context, coap_async_t *async);
|
||||
|
||||
/**
|
||||
* Retrieves the object identified by @p mid from the list of asynchronous
|
||||
* Retrieves the object identified by @p token from the list of asynchronous
|
||||
* transactions that are registered with @p context. This function returns a
|
||||
* pointer to that object or @c NULL if not found.
|
||||
*
|
||||
* @param context The context where the asynchronous objects are registered
|
||||
* with.
|
||||
* @param session The session that is used for asynchronous transmissions.
|
||||
* @param mid The mid of the object to retrieve.
|
||||
* @param token The PDU's token of the object to retrieve.
|
||||
*
|
||||
* @return A pointer to the object identified by @p mid or @c NULL if
|
||||
* @return A pointer to the object identified by @p token or @c NULL if
|
||||
* not found.
|
||||
*/
|
||||
coap_async_t *coap_find_async(coap_context_t *context,
|
||||
coap_session_t *session, coap_mid_t mid);
|
||||
coap_session_t *session, coap_binary_t token);
|
||||
|
||||
/**
|
||||
* Set the application data pointer held in @p async. This overwrites any
|
||||
|
||||
@@ -415,6 +415,15 @@ coap_session_t *coap_session_get_by_peer(const coap_context_t *ctx,
|
||||
*/
|
||||
#define COAP_DEFAULT_NSTART 1
|
||||
|
||||
/**
|
||||
* The maximum number of seconds before sending back a response to a
|
||||
* multicast request.
|
||||
* RFC 7252, Section 4.8 DEFAULT_LEISURE is 5.
|
||||
*/
|
||||
#ifndef COAP_DEFAULT_LEISURE
|
||||
#define COAP_DEFAULT_LEISURE (5U)
|
||||
#endif /* COAP_DEFAULT_LEISURE */
|
||||
|
||||
/**
|
||||
* The MAX_TRANSMIT_SPAN definition for the session (s).
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user