UaClientSdk::UaSessionCallback Class Reference
[UA Client Library]

#include <uaclientsdk.h>

List of all members.


Public Member Functions

virtual void connectionStatusChanged (OpcUa_UInt32 clientConnectionId, UaClient::ServerStatus serverStatus)=0
 [in] New connection status. See UaClient::ServerStatus for more details
virtual void readComplete (OpcUa_UInt32 transactionId, const UaStatus &result, const UaDataValues &values, const UaDiagnosticInfos &diagnosticInfos)
 [in] List of diagnostic information
virtual void writeComplete (OpcUa_UInt32 transactionId, const UaStatus &result, const UaStatusCodeArray &results, const UaDiagnosticInfos &diagnosticInfos)
 [in] List of diagnostic information
virtual void callComplete (OpcUa_UInt32 transactionId, const UaStatus &result, const CallOut &callResponse)
 [in] Output arguments and input argument results. See CallOut for more details

Detailed Description

UaSessionCallback defines the callback interface for the UaSession class. This callback interface needs to be implemented by the user of the UaSession class to receive connection status change callbacks from the Client SDK. The interface provides also the callback functions for the asynchronous service calls. Only the callbacks for used asynchronous calls need to be implemented by the user of the SDK.
Callbacks from the SDK APIs are coming from worker threads and not from the thread that was used to connect to the server. It is in the responsibility of the user of the client API to syncronize the data provided by the callbacks with a GUI main thread if this is necessary.

Member Function Documentation

virtual void UaClientSdk::UaSessionCallback::connectionStatusChanged ( OpcUa_UInt32  clientConnectionId,
UaClient::ServerStatus  serverStatus 
) [pure virtual]

[in] New connection status. See UaClient::ServerStatus for more details

Send changed status.

Parameters:
clientConnectionId  [in] Client defined handle of the affected session

void UaClientSdk::UaSessionCallback::readComplete ( OpcUa_UInt32  transactionId,
const UaStatus result,
const UaDataValues &  values,
const UaDiagnosticInfos &  diagnosticInfos 
) [virtual]

[in] List of diagnostic information

Send read results.

Parameters:
transactionId  [in] Client defined transction id for the read
result  [in] Overall read result
values  [in] List of read results contained in OpcUa_DataValue structures

void UaClientSdk::UaSessionCallback::writeComplete ( OpcUa_UInt32  transactionId,
const UaStatus result,
const UaStatusCodeArray &  results,
const UaDiagnosticInfos &  diagnosticInfos 
) [virtual]

[in] List of diagnostic information

Send write results.

Parameters:
transactionId  [in] Client defined transction id for the write
result  [in] Overall write result
results  [in] List of write results

void UaClientSdk::UaSessionCallback::callComplete ( OpcUa_UInt32  transactionId,
const UaStatus result,
const CallOut callResponse 
) [virtual]

[in] Output arguments and input argument results. See CallOut for more details

Send call result.

Parameters:
transactionId  [in] Client defined transction id for the call
result  [in] Overall call result


The documentation for this class was generated from the following files:
  • src/uaclient/uaclientcpp/uaclientsdk.h
  • src/uaclient/uaclientcpp/uaclientsdk.cpp