Open Lighting Architecture 0.10.9
Loading...
Searching...
No Matches
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

◆ IncomingStreamTransport()

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

◆ ~IncomingStreamTransport()

ola::acn::IncomingStreamTransport::~IncomingStreamTransport ( )

Clean up

Member Function Documentation

◆ Receive()

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: