Open Lighting Architecture
|
Send DMX512 data to olad.
StreamingClient sends DMX512 data to OLAD without waiting for an acknowledgement. It's best suited to simple clients which only ever send DMX512 data.
Classes | |
class | Options |
Public Member Functions | |
StreamingClient (bool auto_start=true) | |
StreamingClient (const Options &options) | |
~StreamingClient () | |
bool | Setup () |
void | Stop () |
bool | SendDmx (unsigned int universe, const DmxBuffer &data) |
void | ChannelClosed () |
|
explicit |
Create a new StreamingClient.
auto_start | if set to true, this will automatically start olad if it's not already running. |
|
explicit |
Create a new StreamingClient.
options | an Options structure. |
ola::StreamingClient::~StreamingClient | ( | ) |
Destructor. This closes the connection to the olad server if it's still open.
bool ola::StreamingClient::SendDmx | ( | unsigned int | universe, |
const DmxBuffer & | data | ||
) |
Send a DmxBuffer to the olad server.
bool ola::StreamingClient::Setup | ( | ) |
Initialize the client and connect to olad.
void ola::StreamingClient::Stop | ( | ) |
Close the connection to the olad server. This does not need to be called since ~StreamingClient() will close the connection if it's still open when the object is destroyed.