Open Lighting Architecture: ola::acn::IncomingStreamTransport Class Reference

| Open Lighting Architecture 0.10.9

Loading...
Searching...
No Matches
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

## ◆ IncomingStreamTransport()

ola::acn::IncomingStreamTransport::IncomingStreamTransport | ( | class BaseInflator * | inflator,
|  | ola::io::ConnectedDescriptor * | descriptor,
|  | const ola::network::IPV4SocketAddress & | source )

Create a new IncomingStreamTransport.

Parameters

  inflator | the inflator to call for each PDU
  descriptor | the descriptor to read from
  source | the 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:

- libs/acn/TCPTransport.h
- libs/acn/TCPTransport.cpp