Open Lighting Architecture
0.9.6
|
An Open Pixel Control server.
The server listens on a TCP port and receives OPC data.
Classes | |
struct | RxState |
Public Types | |
typedef Callback3< void, uint8_t, const uint8_t *, unsigned int > | ChannelCallback |
The callback executed when new OPC data arrives. |
Public Member Functions | |
OPCServer (ola::io::SelectServerInterface *ss, const ola::network::IPV4SocketAddress &listen_addr) | |
Create a new OPCServer. | |
~OPCServer () | |
Destructor. | |
bool | Init () |
Initialize the OPCServer. | |
void | SetCallback (uint8_t channel, ChannelCallback *callback) |
Set the callback to be run when channel data arrives. | |
ola::network::IPV4SocketAddress | ListenAddress () const |
The listen address of this server. |
ola::plugin::openpixelcontrol::OPCServer::OPCServer | ( | ola::io::SelectServerInterface * | ss, |
const ola::network::IPV4SocketAddress & | listen_addr | ||
) |
Create a new OPCServer.
ss | The SelectServer to use |
listen_addr | the IP:port to listen on. |
bool ola::plugin::openpixelcontrol::OPCServer::Init | ( | ) |
Initialize the OPCServer.
IPV4SocketAddress ola::plugin::openpixelcontrol::OPCServer::ListenAddress | ( | ) | const |
The listen address of this server.
void ola::plugin::openpixelcontrol::OPCServer::SetCallback | ( | uint8_t | channel, |
ChannelCallback * | callback | ||
) |
Set the callback to be run when channel data arrives.
channel | the OPC channel this callback is for. |
callback | The callback to run, ownership is transferred and any previous callbacks for this channel are removed. |