Open Lighting Architecture
0.9.0
|
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 |
class | SendArgs |
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) |
bool | SendDMX (unsigned int universe, const DmxBuffer &data, const SendArgs &args) |
Send DMX 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::client::StreamingClient::~StreamingClient | ( | ) |
Destructor. This closes the connection to the olad server if it's still open.
bool ola::client::StreamingClient::SendDmx | ( | unsigned int | universe, |
const DmxBuffer & | data | ||
) |
Send a DmxBuffer to the olad server.
universe | the universe to send on. |
data | the DMX512 data. |
bool ola::client::StreamingClient::SendDMX | ( | unsigned int | universe, |
const DmxBuffer & | data, | ||
const SendArgs & | args | ||
) |
Send DMX data.
universe | the universe to send to. |
data | the DmxBuffer with the data |
args | the SendDMXArgs to use for this call. |
bool ola::client::StreamingClient::Setup | ( | ) |
Initialize the client and connect to olad.
void ola::client::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.