[][src]Function libcoap_sys::coap_io_prepare_epoll

pub unsafe extern "C" fn coap_io_prepare_epoll(
    ctx: *mut coap_context_t,
    now: coap_tick_t
) -> c_uint

Any now timed out delayed packet is transmitted, along with any packets associated with requested observable response.

In addition, it returns when the next expected I/O is expected to take place (e.g. a packet retransmit).

Note: If epoll support is compiled into libcoap, coap_io_prepare_epoll() must be used instead of coap_write().

Internal function.

@param ctx The CoAP context @param now Current time.

@return timeout Maxmimum number of milliseconds that can be used by a epoll_wait() to wait for network events or 0 if wait should be forever.