CRingItemTransportFactory

Name

CRingItemTransportFactory -- Create and appropriate ring item transport

Synopsis


#include <CRingItemTransport.h>
#include <CRingItemTransportFactory.h>

class CRingItemTransportFactory
{
public:
    static CRingItemTransport* createTransport(
        const char* uri, CRingBuffer::ClientMode accessMode
    );
        

DESCRIPTION

Creates the ring item transport appropriate to the URI protocol type (tcp: or file:), and access mode (CRingBuffer::producer or CRingBuffer::consumer)

The transport is created with new and therefore must be freed with delete when the application no longer needs it.