mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-06 01:42:53 +03:00
coap_io_pending() checks to see if there are any PDUs pending transmission, whether there are any large (block) transmissions in progress, whether there are still expected response packets(client) or expected request packets(server), and whether the client is expecting further observe responses. If any of this is true, then it returns 1, else 0. coap_io_pending() also invokes coap_io_process() to check that all that can be transmitted is, as well as processes any impending input packets. This takes coap_can_exit() a step further who only checks the transmit state. coap_handle_response_get_block() has been updated to release the current lg_crcv if all the fragmented body of a large transfer have been received. Documentation updated.