25 #ifndef INCLUDE_OLA_CLIENT_STREAMINGCLIENT_H_
26 #define INCLUDE_OLA_CLIENT_STREAMINGCLIENT_H_
35 namespace io {
class SelectServer; }
36 namespace network {
class TCPSocket; }
37 namespace proto {
class OlaServerService_Stub; }
68 virtual bool Setup() = 0;
70 virtual void Stop() = 0;
72 virtual bool SendDmx(
unsigned int universe,
const DmxBuffer &data) = 0;
74 virtual bool SendDMX(
unsigned int universe,
76 const SendArgs &args) = 0;
163 bool SendDMX(
unsigned int universe,
171 uint16_t m_server_port;
175 class ola::proto::OlaServerService_Stub *m_stub;
176 bool m_socket_closed;
178 bool Send(
unsigned int universe, uint8_t priority,
const DmxBuffer &data);
184 #endif // INCLUDE_OLA_CLIENT_STREAMINGCLIENT_H_
static const uint8_t SOURCE_PRIORITY_DEFAULT
The default priority for a source.
Definition: SourcePriorities.h:41
uint8_t priority
the priority of the data. This should be between ola::dmx::SOURCE_PRIORITY_MIN and ola::dmx::SOURCE_P...
Definition: StreamingClient.h:61
The constants for DMX source priorities.
Represents the RPC session between a client and server.
Definition: RpcSession.h:45
#define DISALLOW_COPY_AND_ASSIGN(TypeName)
Creates dummy copy constructor and assignment operator declarations.
Definition: Macro.h:44
Definition: StreamingClient.h:94
bool SendDMX(unsigned int universe, const DmxBuffer &data, const SendArgs &args)
Send DMX data.
Definition: StreamingClient.cpp:135
Used to hold a single universe of DMX data.
Definition: DmxBuffer.h:49
Constants used throughout OLA.
Send DMX512 data to olad.
Definition: StreamingClient.h:89
static const int OLA_DEFAULT_PORT
The default port which olad listens on for incoming RPC connections.
Definition: Constants.h:68
A class used to hold a single universe of DMX data.
Options()
Definition: StreamingClient.h:100
~StreamingClient()
Definition: StreamingClient.cpp:66
bool Setup()
Definition: StreamingClient.cpp:70
bool SendDmx(unsigned int universe, const DmxBuffer &data)
Definition: StreamingClient.cpp:130
The RPC channel used to communicate between the client and the server. This implementation runs over ...
Definition: RpcChannel.h:51
StreamingClient(bool auto_start=true)
Definition: StreamingClient.cpp:46
Definition: TCPSocket.h:43
A single threaded I/O event management system.
Definition: SelectServer.h:63
The interface for the StreamingClient class.
Definition: StreamingClient.h:49
bool auto_start
Definition: StreamingClient.h:106
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
uint16_t server_port
Definition: StreamingClient.h:111
Definition: StreamingClient.h:54
void Stop()
Definition: StreamingClient.cpp:111