mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-11 03:10:40 +03:00
42296f73f58772858de8acf02b531765ae3557f6
this change spreads the concept of "dirty" from resources to subscriptions. this allows queuing up notifications in case not all of them can be transmitted at the same time (which can happen due to constraints in pdu or node space). when a dirty resource's notifications can not be sent, the resource is marked as partiallydirty, and on the subscriptions that could not be sent out, the dirty flag is set. they get cleared later when coap_notify_observers gets run again, as it not only looks for dirty, but also for partiallydirty resources. note that there is currently no facility that prevents that all the nodes get assigned to the send queue, leaving no room for receiving packages (which happens in mass notifications, blocks all incoming packages and is only resolved by the transmissions timing out). my current test setup always leaves at least one node free for reception by over-allocating and freeing a node on sending.
libcoap: A C implementation of IETF Core Application protocol Copyright (C) 2010--2013 by Olaf Bergmann <bergmann@tzi.org> ABOUT LIBCOAP libcoap is a C implementation of a lightweight application-protocol for devices that are constrained their resources such as computing power, RF range, memory, bandwith, or network packet sizes. This protocol, CoAP, is developed in the IETF working group "Constrained RESTful Environments (core)", see <http://6lowapp.net>. PACKAGE CONTENTS This directory contains a protocol parser and basic networking functions for platform with support for malloc() and BSD-style sockets. The examples directory contains a client and a server to demonstrate the use of this library. LICENSE INFORMATION This library is published as open-source software without any warranty of any kind. Use is permitted under the terms of the GNU General Public License (GPL), Version 2 or higher, OR the revised BSD license. Please refer to LICENSE.GPL oder LICENSE.BSD for further details.
Description
No description provided
14 MiB
0 Stars
2 Watchers
0 Forks
Languages
C
93.6%
M4
2.9%
CMake
1.8%
Shell
0.7%
Makefile
0.6%
Other
0.4%