21 #ifndef PLUGINS_OPENPIXELCONTROL_OPCCLIENT_H_ 22 #define PLUGINS_OPENPIXELCONTROL_OPCCLIENT_H_ 28 #include "ola/io/MemoryBlockPool.h" 29 #include "ola/io/SelectServerInterface.h" 30 #include "ola/network/AdvancedTCPConnector.h" 32 #include "ola/network/TCPSocket.h" 33 #include "ola/util/Backoff.h" 38 class NonBlockingSender;
42 namespace openpixelcontrol {
80 bool SendDmx(uint8_t channel,
const DmxBuffer &buffer);
87 void SetSocketCallback(SocketEventCallback *callback);
97 std::auto_ptr<ola::network::TCPSocket> m_client_socket;
98 std::auto_ptr<ola::io::NonBlockingSender> m_sender;
99 std::auto_ptr<SocketEventCallback> m_socket_callback;
110 #endif // PLUGINS_OPENPIXELCONTROL_OPCCLIENT_H_ Represents Socket Addresses.
Definition: TCPSocketFactory.h:46
#define DISALLOW_COPY_AND_ASSIGN(TypeName)
Creates dummy copy constructor and assignment operator declarations.
Definition: Macro.h:44
Attempts to open a TCP connection until a failure limit is reached.
Definition: AdvancedTCPConnector.h:48
std::string GetRemoteAddress() const
Return the remote address for this Client.
Definition: OPCClient.h:73
Used to hold a single universe of DMX data.
Definition: DmxBuffer.h:49
A class used to hold a single universe of DMX data.
The interface for the SelectServer.
Definition: SelectServerInterface.h:42
Definition: TCPSocket.h:43
An Open Pixel Control client.
Definition: OPCClient.h:49
ola::Callback1< void, bool > SocketEventCallback
Called when the socket changes state.
Definition: OPCClient.h:54
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
An IPv4 SocketAddress.
Definition: SocketAddress.h:78
MemoryBlockPool. This class is not thread safe.
Definition: MemoryBlockPool.h:35
A 1 argument callback which can be called multiple times.
Definition: Callback.h:992