EdgeVisDecoderSDK::IStreamListener Class Referenceabstract

Detailed Description

Defines an interface for a class that listens for incoming data from a Stream.

Threads

Care should be taken with threading within the EdgeVis SDK.

  • Callbacks from the SDK must not be blocked. Any processing resulting in a callback must be passed to a separate thread in your application and the callback complete as soon as possible
  • Callbacks from the SDK must not call back into the SDK on the same thread. Call back into the SDK on a separate thread.

Availability

Available in version 6.0 of Decoder SDK. Requires a server version greater than 6.0

#include <IStreamListener.h>

Public Member Functions

virtual void DataReceived (StreamData data)=0
 Called when data is received from a stream. More...
 
virtual void StreamStatusChanged (StreamStatus status, std::wstring user)=0
 Called on a status message from the stream. More...
 

Member Function Documentation

virtual void EdgeVisDecoderSDK::IStreamListener::DataReceived ( StreamData  data)
pure virtual

Called when data is received from a stream.

Parameters
dataThe received data.
virtual void EdgeVisDecoderSDK::IStreamListener::StreamStatusChanged ( StreamStatus  status,
std::wstring  user 
)
pure virtual

Called on a status message from the stream.

Sends the status message on to attached clients.

Parameters
statusThe status message sent from the stream.
userThe user who currently has ownership of the stream for the case when a data stream is in use by another user.

The documentation for this class was generated from the following file: