• Home
  • Raw
  • Download

Lines Matching +full:wait +full:- +full:for +full:- +full:processing

2  * coap_net.h -- CoAP context interface
4 * Copyright (C) 2010-2023 Olaf Bergmann <bergmann@tzi.org>
6 * SPDX-License-Identifier: BSD-2-Clause
8 * This file is part of the CoAP library libcoap. Please see README for terms
42 * API for handling PDUs using CoAP Contexts
47 COAP_RESPONSE_FAIL, /**< Response not liked - send CoAP RST packet */
72 * @param reason The reason for the NACK.
106 * @param context The context to register the handler for.
118 * @param context The context to register the handler for.
128 * @param context The context to register the handler for.
138 * @param context The context to register the handler for.
158 * Set the context's default PSK hint and/or key for a server.
175 * Set the context's default PSK hint and/or key for a server.
187 * Set the context's default PKI information for a server.
199 * Set the context's default Root CA information for a client or server.
214 * Set the context keepalive timer for sessions.
216 * i.e. no packet sent or received, for the given number of seconds.
217 * For unreliable protocols, a CoAP Empty message will be sent. If a
221 * For reliable protocols, a CoAP PING message will be sent. If a CoAP PONG
226 * @param seconds Number of seconds for the inactivity timer, or zero
227 * to disable CoAP-level keepalive messages.
242 * Get the libcoap internal file descriptor for using in an application's
247 * @return The libcoap file descriptor or @c -1 if epoll is not available.
302 * Set the CSM timeout value. The number of seconds to wait for a (TCP) CSM
304 * 0 (the default) means use wait forever.
361 * Returns a new message id and updates @p session->tx_mid accordingly. The
393 * Returns any application-specific data that has been stored with @p
407 * time, the textual reason phrase for @p code will be added as payload, with
408 * Content-Type @c 0.
410 * error. The storage allocated for the new message must be released with
425 * Sends an error response with code @p code for request @p request to @p dst.
459 * Sends an ACK message with code @c 0 for the specified @p request to @p dst.
472 * Sends an RST message with code @c 0 for the specified @p request to @p dst.
489 * allocated for the pdu will be released by coap_send().
503 * Invokes the event handler of @p context for the given @p event and
522 * queued for transmission. Note that @c 0 does not mean there has
534 * Function interface for joining a multicast group for listening for the
538 * @param groupname The name of the group that is to be joined for listening.
542 * @return 0 on success, -1 on error
551 * Function interface for defining the hop count (ttl) for sending
563 * Function interface to enable processing mcast requests on a per resource
576 * API for Application Input / Output checking
581 #define COAP_IO_NO_WAIT ((uint32_t)-1)
584 * The main I/O processing function. All pending network I/O is completed,
585 * and then optionally waits for the next input packet.
587 * This internally calls coap_io_prepare_io(), then select() for the appropriate
592 * calls coap_io_prepare_epoll(), then epoll_wait() for waiting for any file
598 * @param timeout_ms Minimum number of milliseconds to wait for new packets
599 * before returning after doing any processing.
603 * and do the necessary processing.
605 * after processing without waiting for any new input
608 * @return Number of milliseconds spent in function or @c -1 if there was
614 * The main message processing loop with additional fds for internal select.
617 * @param timeout_ms Minimum number of milliseconds to wait for new packets
618 * before returning after doing any processing.
622 * and do the necessary processing.
624 * after processing without waiting for any new input
628 * @param readfds Read FDs to additionally check for in internal select()
630 * @param writefds Write FDs to additionally check for in internal select()
632 * @param exceptfds Except FDs to additionally check for in internal select()
636 * @return Number of milliseconds spent in coap_io_process_with_fds, or @c -1
645 * Check to see if there is any i/o pending for the @p context.
663 * Internal API for Application Input / Output checking
697 * select() to wait for network events or 0 if wait should be
738 * epoll_wait() to wait for network events or 0 if wait should be
766 * API for LwIP interface
782 * LwIP callback handler that can be used to wait / timeout for the
787 * @param milli_secs Suggested number of milli secs to wait before returning
790 * @return @c 1 if packet received, @c 0 for timeout, else @c -1 on error.
795 * Set up a wait / timeout callback handler for use when
799 * @param handler The handler to call while waiting for input.
815 * @param timeout_ms Minimum number of milliseconds to wait for new packets
816 * before returning after doing any processing.
820 * and do the necessary processing.
822 * after processing without waiting for any new input
825 * @return Number of milliseconds spent in function or @c -1 if there was
848 * select() to wait for network events or 0 if wait should be
877 /* Old definitions which may be hanging around in old code - be helpful! */