Open Lighting Architecture
Latest Git
|
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) |
bool | SendDMX (unsigned int universe, const DmxBuffer &data, const SendArgs &args) |
Send DMX data. More... | |
void | ChannelClosed (ola::rpc::RpcSession *session) |
|
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.
|
virtual |
Send a DmxBuffer to the olad server.
universe | the universe to send on. |
data | the DMX512 data. |
Implements ola::client::StreamingClientInterface.
|
virtual |
Send DMX data.
universe | the universe to send to. |
data | the DmxBuffer with the data |
args | the SendDMXArgs to use for this call. |
Implements ola::client::StreamingClientInterface.
|
virtual |
Initialize the client and connect to olad.
Implements ola::client::StreamingClientInterface.
|
virtual |
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.
Implements ola::client::StreamingClientInterface.