Open Lighting Architecture  Latest Git
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | List of all members
ola::acn::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::acn::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::acn::IncomingStreamTransport::~IncomingStreamTransport ( )

Clean up

Member Function Documentation

bool ola::acn::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: