Navigation



Ignore:
Timestamp:
Jun 7, 2013, 7:48:34 PM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Further preparation of the DTLS integration. Some cleanups in the GNUTLS handling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/libfdproto.h

    r1171 r1186  
    31843184        fd_fifo_timedget_int((queue), (void *)(item), (abstime))
    31853185
     3186
     3187/*
     3188 * FUNCTION:    fd_fifo_select
     3189 *
     3190 * PARAMETERS:
     3191 *  queue       : The queue to test.
     3192 *  abstime     : the absolute time until which we can block waiting for an item. If NULL, the function returns immediatly.
     3193 *
     3194 * DESCRIPTION:
     3195 *  This function is similar to select(), it waits for data to be available in the queue
     3196 * until the abstime is expired.
     3197 * Upon function entry, even if abstime is already expired the data availability is tested.
     3198 *
     3199 * RETURN VALUE:
     3200 *  0           : timeout expired without available data.
     3201 *  <0          : An error occurred (e.g., -EINVAL...)
     3202 *  >0          : data is available. The next call to fd_fifo_get will not block.
     3203 */
     3204int fd_fifo_select ( struct fifo * queue, const struct timespec *abstime );
     3205
     3206
     3207
    31863208/* Dump a fifo list and optionally its inner elements -- beware of deadlocks! */
    31873209typedef DECLARE_FD_DUMP_PROTOTYPE((*fd_fifo_dump_item_cb), void * item); /* This function should be 1 line if possible, or use indent level. Ends with '\n' */
Note: See TracChangeset for help on using the changeset viewer.