Public Member Functions

PacketProducer< SIZE > Class Template Reference

Packet producer that supports variable sized packets. More...

#include <consumer.h>

Inheritance diagram for PacketProducer< SIZE >:
Producer< unsigned, SIZE >

List of all members.

Public Member Functions

 PacketProducer (PacketConsumer< SIZE > *consumer=0, unsigned cap_nq=0)
bool produce (const unsigned char *buf, unsigned len)
 Put something in the buffer.

Detailed Description

template<unsigned SIZE>
class PacketProducer< SIZE >

Packet producer that supports variable sized packets.


Constructor & Destructor Documentation

template<unsigned SIZE>
PacketProducer< SIZE >::PacketProducer ( PacketConsumer< SIZE > *  consumer = 0,
unsigned  cap_nq = 0 
) [inline]

Member Function Documentation

template<unsigned SIZE>
bool PacketProducer< SIZE >::produce ( const unsigned char *  buf,
unsigned  len 
) [inline]

Put something in the buffer.

Please note that this function is not locked, thus only a single producer should do the access at the very same time.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines