Open Lighting Architecture  0.9.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
ola::plugin::e131::IncomingStreamTransport Class Reference

Detailed Description

Read ACN messages from a stream. Generally you want to use the IncomingTCPTransport directly. This class is used for testing.

Public Member Functions

 IncomingStreamTransport (class BaseInflator *inflator, ola::io::ConnectedDescriptor *descriptor, const ola::network::IPV4SocketAddress &source)
 ~IncomingStreamTransport ()
bool Receive ()

Constructor & Destructor Documentation

ola::plugin::e131::IncomingStreamTransport::IncomingStreamTransport ( class BaseInflator inflator,
ola::io::ConnectedDescriptor descriptor,
const ola::network::IPV4SocketAddress source 
)

Create a new IncomingStreamTransport.

Parameters
inflatorthe inflator to call for each PDU
descriptorthe descriptor to read from
sourcethe IP and port to use in the transport header
ola::plugin::e131::IncomingStreamTransport::~IncomingStreamTransport ( )

Clean up

Member Function Documentation

bool ola::plugin::e131::IncomingStreamTransport::Receive ( )

Read from this stream, looking for ACN messages.

Returns
false if the stream is no longer consistent. At this point the caller should close the descriptor since the data is no longer valid.

The documentation for this class was generated from the following files: