|
| | StreamingClient () |
| | Creates a new streaming client.
|
| |
| | ~StreamingClient () |
| | Destructs a streaming client.
|
| |
| bool | connect (const Address4 &address, const Port &port) |
| | Connects the streaming client with a remote streaming server.
|
| |
| bool | disconnect () |
| | Disconnects the streaming client.
|
| |
| bool | isConnected () const |
| | Returns whether this client is currently connected with a streaming server.
|
| |
| Channels | selectableChannels () |
| | Returns a list of selectable channels provides by the streaming server.
|
| |
| std::string | channelDataType (const std::string &channel) |
| | Returns a data type of a specified channel provides by the streaming server.
|
| |
| const std::string & | channel () const |
| | Returns the selected channel of the streaming server.
|
| |
| const std::string & | dataType () const |
| | Returns the type of the streaming data.
|
| |
| const Address4 & | serverAddress () const |
| | Returns the address of the connected streaming server.
|
| |
| const Port & | serverPort () const |
| | Returns the port of the connected streaming server.
|
| |
| bool | start (const std::string &channel=std::string()) |
| | (Re-)Starts the streaming.
|
| |
| bool | pause () |
| | Pauses the streaming.
|
| |
| bool | stop () |
| | Stops the streaming.
|
| |
| bool | isReceiving () |
| | Returns whether this client is currently receiving streaming data.
|
| |
| bool | isPaused () |
| | Returns whether this client is currently paused.
|
| |
| void | setRequestCallback (const RequestCallback &callback) |
| | Sets the callback function for streaming server requests (like e.g.
|
| |
| void | setReceiveCallback (const ReceiveCallback &callback) |
| | Sets the callback function for streaming data received from the streaming server.
|
| |
| const std::string & | name () const |
| | Returns the name of this streaming object.
|
| |
| const std::string & | description () const |
| | Returns the description of this streaming object.
|
| |
| double | responseTimeout () const |
| | Returns the timeout value the streaming object waits for response messages.
|
| |
| virtual bool | setName (const std::string &name) |
| | Sets the name of this streaming object.
|
| |
| virtual bool | setDescription (const std::string &description) |
| | Sets the description of this streaming object.
|
| |
| bool | setResponseTimeout (const double timeout) |
| | Sets the timeout value the streaming object waits for response messages.
|
| |
|
| void | onCommand (const std::string &command, const std::string &value, const SessionId sessionId) |
| | New command function.
|
| |
| void | onStart (const std::string &value, const SessionId sessionId) |
| | Function handling start commands.
|
| |
| void | onPause (const std::string &value, const SessionId sessionId) |
| | Function handling pause commands.
|
| |
| void | onStop (const std::string &value, const SessionId sessionId) |
| | Function handling stop commands.
|
| |
| void | onChangedDataType (const std::string &value, const SessionId sessionId) |
| | Function handling changed data type commands.
|
| |
| void | onTCPReceiveData (const void *data, const size_t size) |
| | Callback function for TCP receive message.
|
| |
| void | onUDPReceiveData (const Address4 &address, const Port &port, const void *data, const size_t size, const PackagedSocket::MessageId messageId) |
| | Callback function for UDP receive message.
|
| |
| | Streaming () |
| | Creates a new streaming object.
|
| |
| | Streaming (const Streaming &streaming)=delete |
| | Disabled copy constructor.
|
| |
| virtual | ~Streaming ()=default |
| | Destructs an object.
|
| |
| bool | parse (const unsigned char *data, const size_t size, bool &isResponse, std::string &message, std::string &value, SessionId &sessionId) |
| | Parses a command or a response.
|
| |
| Streaming & | operator= (const Streaming &streaming)=delete |
| | Disabled copy operator.
|
| |
|
| static const std::string & | connectCommand () |
| | Definition of a connect command.
|
| |
| static const std::string & | connectResponseP () |
| | Definition of a positive connect response.
|
| |
| static const std::string & | connectResponseN () |
| | Definition of a negative connect response.
|
| |
| static const std::string & | disconnectCommand () |
| | Definition of a disconnect command.
|
| |
| static const std::string & | disconnectResponseP () |
| | Definition of a positive disconnect response.
|
| |
| static const std::string & | disconnectResponseN () |
| | Definition of a negative disconnect response.
|
| |
| static const std::string & | channelSelectCommand () |
| | Definition of a channel select command.
|
| |
| static const std::string & | channelSelectResponseP () |
| | Definition of a positive channel select response.
|
| |
| static const std::string & | channelSelectResponseN () |
| | Definition of a negative channel select response.
|
| |
| static const std::string & | startCommand () |
| | Definition of a start command.
|
| |
| static const std::string & | startResponseP () |
| | Definition of a positiv start response.
|
| |
| static const std::string & | startResponseN () |
| | Definition fo a negative start response.
|
| |
| static const std::string & | pauseCommand () |
| | Definition of a pause command.
|
| |
| static const std::string & | pauseResponseP () |
| | Definition of a positive pause response.
|
| |
| static const std::string & | pauseResponseN () |
| | Definition of a negative pause response.
|
| |
| static const std::string & | stopCommand () |
| | Definition of a stop command.
|
| |
| static const std::string & | stopResponseP () |
| | Definition of a positive stop response.
|
| |
| static const std::string & | stopResponseN () |
| | Definition of a negative stop response.
|
| |
| static const std::string & | clientPortCommand () |
| | Definition of a client port command.
|
| |
| static const std::string & | clientPortResponseP () |
| | Definition of a positive client port response.
|
| |
| static const std::string & | clientPortResponseN () |
| | Definition of a negative client port response.
|
| |
| static const std::string & | serverPortCommand () |
| | Definition of a server port command.
|
| |
| static const std::string & | serverPortResponseP () |
| | Definition of a positive server port response.
|
| |
| static const std::string & | serverPortResponseN () |
| | Definition of a negative server port response.
|
| |
| static const std::string & | channelRequestCommand () |
| | Definition of a channel request command.
|
| |
| static const std::string & | channelRequestResponseP () |
| | Definition of a positive channel request response.
|
| |
| static const std::string & | channelRequestResponseN () |
| | Definition of a negative channel request response.
|
| |
| static const std::string & | changedDataTypeCommand () |
| | Definition of a changed data type command.
|
| |
| static const std::string & | changedDataTypeResponseP () |
| | Definition of a positive changed data type request.
|
| |
| static const std::string & | changedDataTypeResponseN () |
| | Definition of a negative change data type request.
|
| |
| static const std::string & | dataTypeRequestCommand () |
| | Definition of a data type request command.
|
| |
| static const std::string & | dataTypeRequestResponseP () |
| | Definition of a positive data type request response.
|
| |
| static const std::string & | dataTypeRequestResponseN () |
| | Definition of a negative data type request response.
|
| |
| static std::string | createCommand (const std::string &command, const SessionId sessionId) |
| | Creates a new command message.
|
| |
| static std::string | createCommand (const std::string &command, const std::string &value, const SessionId sessionId) |
| | Creates a new command message with a value.
|
| |
| static std::string | createResponse (const std::string &response, const SessionId sessionId) |
| | Creates a new response message.
|
| |
| static std::string | createResponse (const std::string &response, const std::string &value, const SessionId sessionId) |
| | Creates a new response message with a value.
|
| |
This class implements a streaming client.
The client uses a TCP connection for configuration tasks and a UDP connection for the data transfer.