Open Lighting Architecture
0.9.5
|
An Open Pixel Control client.
The OPC client connects to a remote IP:port and sends OPC messages.
Public Types | |
typedef ola::Callback1< void, bool > | SocketEventCallback |
Called when the socket changes state. |
Public Member Functions | |
OPCClient (ola::io::SelectServerInterface *ss, const ola::network::IPV4SocketAddress &target) | |
Create a new OPCClient. | |
~OPCClient () | |
Destructor. | |
std::string | GetRemoteAddress () const |
Return the remote address for this Client. | |
bool | SendDmx (uint8_t channel, const DmxBuffer &buffer) |
Send a DMX frame. | |
void | SetSocketCallback (SocketEventCallback *callback) |
Set the callback to be run when the socket state changes. |
ola::plugin::openpixelcontrol::OPCClient::OPCClient | ( | ola::io::SelectServerInterface * | ss, |
const ola::network::IPV4SocketAddress & | target | ||
) |
Create a new OPCClient.
ss | The SelectServer to use |
target | the remote IP:port to connect to. |
|
inline |
Return the remote address for this Client.
bool ola::plugin::openpixelcontrol::OPCClient::SendDmx | ( | uint8_t | channel, |
const DmxBuffer & | buffer | ||
) |
Send a DMX frame.
channel | the OPC channel to use. |
buffer | the DMX data. |
void ola::plugin::openpixelcontrol::OPCClient::SetSocketCallback | ( | SocketEventCallback * | callback | ) |
Set the callback to be run when the socket state changes.
callback | the callback to run when the socket state changes. Ownership is transferred. |