GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EDS / V2-11-5 > ebfio / rhel4-32
#include <EDS/io/EBF_pkt.ih>
#include <EDS/EBF_pkt.h>
Classes | |
struct | _EBF_pkts_ps |
The iterator control structure. More... | |
union | _EBF_pkts_u |
The iterator control structure. More... | |
Typedefs | |
typedef struct _EBF_pkts_ps | EBF_pkts_ps |
Typedef for struct _EBF_pkts_ps. | |
typedef struct _EBF_pkts_ps | EBF_pkts |
Opaque type for the packets vector. | |
typedef union _EBF_pkts_u | EBF_pkts_u |
Typedef for struct _EBF_pkts. | |
Functions | |
static __inline EBF_pkt * | EBF__pktsPkt (EBF_pkts pkts) |
Retrieves the next packet. | |
static __inline int | EBF__pktsSize (EBF_pkts pkts) |
Retrieves the length in bytes of the packets vector. | |
static __inline EBF_pkts | EBF__pktsNext (EBF_pkts pkts) |
Pushes the packet iterator to the next packet. | |
static __inline EBF_pkts | EBF__pktsAdvance (EBF_pkts pkts, int size) |
Advances the specified packet iterator forward by the specified number of bytes. | |
int | EBF_pktsCount (EBF_pkts pkts) |
Counts the number of packets. | |
EBF_pkts | EBF_pktsLimit (EBF_pkts pkts, int limit) |
Limits the packets to the specified number of packets. | |
EBF_pkts | EBF_pktsSkip (EBF_pkts pkts, int skip) |
Counts the number of packets. | |
EBF_pkts | EBF_pktsSetup (EBF_pkts pkts, int skip, int limit) |
Skips the specified number of packets and then limits the packets vector. |
CVS $Id: EBF_pkts.h,v 1.5 2011/08/04 19:46:11 russell Exp $
When all the packets are exhausted, the empty packets vector will be returned. The empty packets vector is defined as the vector with
unsigned long long int EBF_pkts |
Opaque type for the packets vector.
Advances the specified packet iterator forward by the specified number of bytes.
pkts | The current state of the packet iteractor | |
size | The size, in bytes, to advance the packet iterator |
References _EBF_pkts_u::p, _EBF_pkts_ps::pkt, _EBF_pkts_u::ps, and _EBF_pkts_ps::size.
Referenced by normal_delivery(), and timed_delivery().
Pushes the packet iterator to the next packet.
pkts | The current state of the packet interactor |
References EBF__pktSize(), _EBF_pkts_u::p, _EBF_pkts_ps::pkt, _EBF_pkts_u::ps, and _EBF_pkts_ps::size.
Referenced by EBF_pktsCount(), EBF_pktsLimit(), and EBF_pktsSkip().
Retrieves the next packet.
pkts | The current state of the packet interator |
References _EBF_pkts_u::p, _EBF_pkts_ps::pkt, and _EBF_pkts_u::ps.
Referenced by normal_delivery(), and timed_delivery().
static __inline int EBF__pktsSize | ( | EBF_pkts | pkts | ) | [static] |
Retrieves the length in bytes of the packets vector.
pkts | The current state of the packet interactor |
References _EBF_pkts_u::p, _EBF_pkts_u::ps, and _EBF_pkts_ps::size.
Referenced by normal_delivery(), and timed_delivery().
int EBF_pktsCount | ( | EBF_pkts | pkts | ) |
Counts the number of packets.
pkts | Pointer to the vector of packets to count |
References EBF__pktsNext(), _EBF_pkts_u::p, _EBF_pkts_u::ps, and _EBF_pkts_ps::size.
int EBF_pktsLimit | ( | EBF_pkts | pkts, | |
int | limit | |||
) |
Limits the packets to the specified number of packets.
pkts | Pointer to the vector of packets to limit | |
limit | The number of packets to limit the vector of packets to |
References EBF__pktsNext(), _EBF_pkts_u::p, _EBF_pkts_u::ps, and _EBF_pkts_ps::size.
Referenced by EBF_pktsSetup().
Skips the specified number of packets and then limits the packets vector.
pkts | Pointer to the target vector of packets | |
skip | The number of packets to skip | |
limit | The maximum number of packets, if -1, no limiting is done |
References EBF_pktsLimit(), and EBF_pktsSkip().
Referenced by EBF_streamProcess().
Counts the number of packets.
pkts | Pointer to the target vector of packets | |
skip | The number of packets to skip |
References EBF__pktsNext(), _EBF_pkts_u::p, _EBF_pkts_u::ps, and _EBF_pkts_ps::size.
Referenced by EBF_pktsSetup().