mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-22 23:35:13 +03:00
Merge pull request #348 from mrdeep1/message_id
Remove unused message_id from coap_context_t and coap_async_t
This commit is contained in:
3 files changed
-11
No files matched your search
@@ -43,7 +43,6 @@ typedef struct coap_async_state_t {
|
||||
* asynchronous state object.
|
||||
*/
|
||||
void *appdata;
|
||||
uint16_t message_id; /**< id of last message seen */
|
||||
coap_session_t *session; /**< transaction session */
|
||||
coap_tid_t id; /**< transaction id */
|
||||
struct coap_async_state_t *next; /**< internally used for linking */
|
||||
|
||||
@@ -178,13 +178,6 @@ typedef struct coap_context_t {
|
||||
* context, otherwise 0. */
|
||||
#endif /* WITH_LWIP */
|
||||
|
||||
/**
|
||||
* The last message id that was used is stored in this field. The initial
|
||||
* value is set by coap_new_context() and is usually a random value. A new
|
||||
* message id can be created with coap_new_message_id().
|
||||
*/
|
||||
uint16_t message_id;
|
||||
|
||||
coap_response_handler_t response_handler;
|
||||
coap_nack_handler_t nack_handler;
|
||||
coap_ping_handler_t ping_handler;
|
||||
|
||||
@@ -469,9 +469,6 @@ coap_new_context(
|
||||
/* set default CSM timeout */
|
||||
c->csm_timeout = 30;
|
||||
|
||||
/* initialize message id */
|
||||
prng((unsigned char *)&c->message_id, sizeof(uint16_t));
|
||||
|
||||
if (listen_addr) {
|
||||
coap_endpoint_t *endpoint = coap_new_endpoint(c, listen_addr, COAP_PROTO_UDP);
|
||||
if (endpoint == NULL) {
|
||||
|
||||
Reference in new issue
Block a user