OPC UA Server Main Entry Class. Derived from UaThread It is not possible to create plane copies of this class. It is not possible to use the default constructor. More...

#include <uaserver.h>

Inheritance diagram for UaServer:
Collaboration diagram for UaServer:

List of all members.

Public Member Functions

 UaServer ()
virtual ~UaServer ()
UaStatus initStackSettings (ServerConfig *pServerConfig)
UaStatus startUp (ServerManager *pServerManager)
UaStatus shutDown ()
OpcUa_StatusCode FindServers (OpcUa_Endpoint Endpoint, OpcUa_Handle CallContext, OpcUa_FindServersRequest *Request, OpcUa_EncodeableType *pRequestType)
OpcUa_StatusCode GetEndpoints (OpcUa_Endpoint Endpoint, OpcUa_Handle CallContext, OpcUa_GetEndpointsRequest *Request, OpcUa_EncodeableType *pRequestType)
OpcUa_StatusCode CreateSession (OpcUa_Endpoint Endpoint, OpcUa_Handle CallContext, OpcUa_CreateSessionRequest *Request, OpcUa_EncodeableType *pRequestType)
OpcUa_StatusCode ActivateSession (OpcUa_Endpoint Endpoint, OpcUa_Handle CallContext, OpcUa_ActivateSessionRequest *Request, OpcUa_EncodeableType *pRequestType)
OpcUa_StatusCode CloseSession (OpcUa_Endpoint Endpoint, OpcUa_Handle CallContext, OpcUa_CloseSessionRequest *Request, OpcUa_EncodeableType *pRequestType)
OpcUa_StatusCode Cancel (OpcUa_Endpoint Endpoint, OpcUa_Handle CallContext, OpcUa_CancelRequest *Request, OpcUa_EncodeableType *pRequestType)
OpcUa_StatusCode AddNodes (OpcUa_Endpoint Endpoint, OpcUa_Handle CallContext, OpcUa_AddNodesRequest *Request, OpcUa_EncodeableType *pRequestType)
OpcUa_StatusCode AddReferences (OpcUa_Endpoint Endpoint, OpcUa_Handle CallContext, OpcUa_AddReferencesRequest *Request, OpcUa_EncodeableType *pRequestType)
OpcUa_StatusCode DeleteNodes (OpcUa_Endpoint Endpoint, OpcUa_Handle CallContext, OpcUa_DeleteNodesRequest *Request, OpcUa_EncodeableType *pRequestType)
OpcUa_StatusCode DeleteReferences (OpcUa_Endpoint Endpoint, OpcUa_Handle CallContext, OpcUa_DeleteReferencesRequest *Request, OpcUa_EncodeableType *pRequestType)
OpcUa_StatusCode Browse (OpcUa_Endpoint Endpoint, OpcUa_Handle CallContext, OpcUa_BrowseRequest *Request, OpcUa_EncodeableType *pRequestType)
OpcUa_StatusCode BrowseNext (OpcUa_Endpoint Endpoint, OpcUa_Handle CallContext, OpcUa_BrowseNextRequest *Request, OpcUa_EncodeableType *pRequestType)
OpcUa_StatusCode TranslateBrowsePathsToNodeIds (OpcUa_Endpoint Endpoint, OpcUa_Handle CallContext, OpcUa_TranslateBrowsePathsToNodeIdsRequest *Request, OpcUa_EncodeableType *pRequestType)
virtual UaStatus translateBrowsePathsToNodeIds (const ServiceContext &serviceContext, OpcUa_TranslateBrowsePathsToNodeIdsRequest *pRequest, OpcUa_TranslateBrowsePathsToNodeIdsResponse *pResponse)
OpcUa_StatusCode RegisterNodes (OpcUa_Endpoint Endpoint, OpcUa_Handle CallContext, OpcUa_RegisterNodesRequest *Request, OpcUa_EncodeableType *pRequestType)
OpcUa_StatusCode UnregisterNodes (OpcUa_Endpoint Endpoint, OpcUa_Handle CallContext, OpcUa_UnregisterNodesRequest *Request, OpcUa_EncodeableType *pRequestType)
OpcUa_StatusCode Read (OpcUa_Endpoint Endpoint, OpcUa_Handle CallContext, OpcUa_ReadRequest *Request, OpcUa_EncodeableType *pRequestType)
OpcUa_StatusCode Write (OpcUa_Endpoint Endpoint, OpcUa_Handle CallContext, OpcUa_WriteRequest *Request, OpcUa_EncodeableType *pRequestType)
OpcUa_StatusCode HistoryRead (OpcUa_Endpoint Endpoint, OpcUa_Handle CallContext, OpcUa_HistoryReadRequest *Request, OpcUa_EncodeableType *pRequestType)
OpcUa_StatusCode HistoryUpdate (OpcUa_Endpoint Endpoint, OpcUa_Handle CallContext, OpcUa_HistoryUpdateRequest *Request, OpcUa_EncodeableType *pRequestType)
OpcUa_StatusCode Call (OpcUa_Endpoint Endpoint, OpcUa_Handle CallContext, OpcUa_CallRequest *Request, OpcUa_EncodeableType *pRequestType)
OpcUa_StatusCode CreateSubscription (OpcUa_Endpoint Endpoint, OpcUa_Handle CallContext, OpcUa_CreateSubscriptionRequest *Request, OpcUa_EncodeableType *pRequestType)
OpcUa_StatusCode ModifySubscription (OpcUa_Endpoint Endpoint, OpcUa_Handle CallContext, OpcUa_ModifySubscriptionRequest *Request, OpcUa_EncodeableType *pRequestType)
OpcUa_StatusCode SetPublishingMode (OpcUa_Endpoint Endpoint, OpcUa_Handle CallContext, OpcUa_SetPublishingModeRequest *Request, OpcUa_EncodeableType *pRequestType)
OpcUa_StatusCode Publish (OpcUa_Endpoint Endpoint, OpcUa_Handle CallContext, OpcUa_PublishRequest *Request, OpcUa_EncodeableType *pRequestType)
OpcUa_StatusCode Republish (OpcUa_Endpoint Endpoint, OpcUa_Handle CallContext, OpcUa_RepublishRequest *Request, OpcUa_EncodeableType *pRequestType)
OpcUa_StatusCode TransferSubscriptions (OpcUa_Endpoint Endpoint, OpcUa_Handle CallContext, OpcUa_TransferSubscriptionsRequest *Request, OpcUa_EncodeableType *pRequestType)
OpcUa_StatusCode DeleteSubscriptions (OpcUa_Endpoint Endpoint, OpcUa_Handle CallContext, OpcUa_DeleteSubscriptionsRequest *Request, OpcUa_EncodeableType *pRequestType)
OpcUa_StatusCode CreateMonitoredItems (OpcUa_Endpoint Endpoint, OpcUa_Handle CallContext, OpcUa_CreateMonitoredItemsRequest *Request, OpcUa_EncodeableType *pRequestType)
OpcUa_StatusCode ModifyMonitoredItems (OpcUa_Endpoint Endpoint, OpcUa_Handle CallContext, OpcUa_ModifyMonitoredItemsRequest *Request, OpcUa_EncodeableType *pRequestType)
OpcUa_StatusCode SetMonitoringMode (OpcUa_Endpoint Endpoint, OpcUa_Handle CallContext, OpcUa_SetMonitoringModeRequest *Request, OpcUa_EncodeableType *pRequestType)
OpcUa_StatusCode SetTriggering (OpcUa_Endpoint Endpoint, OpcUa_Handle CallContext, OpcUa_SetTriggeringRequest *Request, OpcUa_EncodeableType *pRequestType)
OpcUa_StatusCode DeleteMonitoredItems (OpcUa_Endpoint Endpoint, OpcUa_Handle CallContext, OpcUa_DeleteMonitoredItemsRequest *Request, OpcUa_EncodeableType *pRequestType)
void secureChannelCreated (OpcUa_UInt32 uSecureChannelId, OpcUa_StatusCode uStatus, const UaString &sSecurityPolicy, OpcUa_UInt16 uSecurityMode, const UaByteString &clientCertificate)
void secureChannelDeleted (OpcUa_UInt32 uSecureChannelId)

Protected Member Functions

virtual UaTransactionManagercreateUaTransactionManager (ServerManager *pServerManager, UaSubscriptionManager *pUaSubscriptionManager)
virtual UaSubscriptionManagercreateUaSubscriptionManager (ServerManager *pServerManager)
virtual void validateEndpoints (UaEndpointArray &)

Detailed Description

OPC UA Server Main Entry Class. Derived from UaThread It is not possible to create plane copies of this class. It is not possible to use the default constructor.

UaServer


Constructor & Destructor Documentation

UaServer::UaServer (  )

Constructs a UaServer object with default values

UaServer::~UaServer (  ) [virtual]

Destroys the UaServer object.


Member Function Documentation

OpcUa_StatusCode UaServer::ActivateSession ( OpcUa_Endpoint  a_pEndpoint,
OpcUa_Handle  a_hCallContext,
OpcUa_ActivateSessionRequest *  a_pRequest,
OpcUa_EncodeableType *  a_pRequestType 
)

The implementation for the ActivateSession service.

Parameters:
a_pEndpointconfigured endpoints for the server.
a_hCallContextCallback context used for the transaction.
a_pRequestthe request of the current send information.
a_pRequestTypethe type of the Request.
Returns:
OPC UA status code
OpcUa_StatusCode UaServer::AddNodes ( OpcUa_Endpoint  a_pEndpoint,
OpcUa_Handle  a_hCallContext,
OpcUa_AddNodesRequest *  a_pRequest,
OpcUa_EncodeableType *  a_pRequestType 
)

The implementation for the AddNodes service.

Parameters:
a_pEndpointconfigured endpoints for the server.
a_hCallContextCallback context used for the transaction.
a_pRequestthe request of the current send information.
a_pRequestTypethe type of the Request.
Returns:
OPC UA status code
OpcUa_StatusCode UaServer::AddReferences ( OpcUa_Endpoint  a_pEndpoint,
OpcUa_Handle  a_hCallContext,
OpcUa_AddReferencesRequest *  a_pRequest,
OpcUa_EncodeableType *  a_pRequestType 
)

The implementation for the AddReferences service.

Parameters:
a_pEndpointconfigured endpoints for the server.
a_hCallContextCallback context used for the transaction.
a_pRequestthe request of the current send information.
a_pRequestTypethe type of the Request.
Returns:
OPC UA status code
OpcUa_StatusCode UaServer::Browse ( OpcUa_Endpoint  a_pEndpoint,
OpcUa_Handle  a_hCallContext,
OpcUa_BrowseRequest *  a_pRequest,
OpcUa_EncodeableType *  a_pRequestType 
)

The implementation for the Browse service.

Parameters:
a_pEndpointconfigured endpoints for the server.
a_hCallContextCallback context used for the transaction.
a_pRequestthe request of the current send information.
a_pRequestTypethe type of the Request.
Returns:
OPC UA status code
OpcUa_StatusCode UaServer::BrowseNext ( OpcUa_Endpoint  a_pEndpoint,
OpcUa_Handle  a_hCallContext,
OpcUa_BrowseNextRequest *  a_pRequest,
OpcUa_EncodeableType *  a_pRequestType 
)

The implementation for the BrowseNext service.

Parameters:
a_pEndpointconfigured endpoints for the server.
a_hCallContextCallback context used for the transaction.
a_pRequestthe request of the current send information.
a_pRequestTypethe type of the Request.
Returns:
OPC UA status code
OpcUa_StatusCode UaServer::Call ( OpcUa_Endpoint  a_pEndpoint,
OpcUa_Handle  a_hCallContext,
OpcUa_CallRequest *  a_pRequest,
OpcUa_EncodeableType *  a_pRequestType 
)

The implementation for the Call service.

Parameters:
a_pEndpointconfigured endpoints for the server.
a_hCallContextCallback context used for the transaction.
a_pRequestthe request of the current send information.
a_pRequestTypethe type of the Request.
Returns:
OPC UA status code
OpcUa_StatusCode UaServer::Cancel ( OpcUa_Endpoint  a_pEndpoint,
OpcUa_Handle  a_hCallContext,
OpcUa_CancelRequest *  a_pRequest,
OpcUa_EncodeableType *  a_pRequestType 
)

The implementation for the Cancel service.

Parameters:
a_pEndpointconfigured endpoints for the server.
a_hCallContextCallback context used for the transaction.
a_pRequestthe request of the current send information.
a_pRequestTypethe type of the Request.
Returns:
OPC UA status code
OpcUa_StatusCode UaServer::CloseSession ( OpcUa_Endpoint  a_pEndpoint,
OpcUa_Handle  a_hCallContext,
OpcUa_CloseSessionRequest *  a_pRequest,
OpcUa_EncodeableType *  a_pRequestType 
)

The implementation for the CloseSession service.

Parameters:
a_pEndpointconfigured endpoints for the server.
a_hCallContextCallback context used for the transaction.
a_pRequestthe request of the current send information.
a_pRequestTypethe type of the Request.
Returns:
OPC UA status code
OpcUa_StatusCode UaServer::CreateMonitoredItems ( OpcUa_Endpoint  a_pEndpoint,
OpcUa_Handle  a_hCallContext,
OpcUa_CreateMonitoredItemsRequest *  a_pRequest,
OpcUa_EncodeableType *  a_pRequestType 
)

The implementation for the CreateMonitoredItems service.

Parameters:
a_pEndpointconfigured endpoints for the server.
a_hCallContextCallback context used for the transaction.
a_pRequestthe request of the current send information.
a_pRequestTypethe type of the Request.
Returns:
OPC UA status code
OpcUa_StatusCode UaServer::CreateSession ( OpcUa_Endpoint  a_pEndpoint,
OpcUa_Handle  a_hCallContext,
OpcUa_CreateSessionRequest *  a_pRequest,
OpcUa_EncodeableType *  a_pRequestType 
)

The implementation for the OpenSession service.

Parameters:
a_pEndpointconfigured endpoints for the server.
a_hCallContextCallback context used for the transaction.
a_pRequestthe request of the current send information.
a_pRequestTypethe type of the Request.
Returns:
OPC UA status code
OpcUa_StatusCode UaServer::CreateSubscription ( OpcUa_Endpoint  a_pEndpoint,
OpcUa_Handle  a_hCallContext,
OpcUa_CreateSubscriptionRequest *  a_pRequest,
OpcUa_EncodeableType *  a_pRequestType 
)

The implementation for the CreateSubscription service.

Parameters:
a_pEndpointconfigured endpoints for the server.
a_hCallContextCallback context used for the transaction.
a_pRequestthe request of the current send information.
a_pRequestTypethe type of the Request.
Returns:
OPC UA status code
UaSubscriptionManager * UaServer::createUaSubscriptionManager ( ServerManager pServerManager ) [protected, virtual]

This function creates the UaSubscriptionManager. The virtual function can be overwritten by a derived class to create a class derived from UaSubscriptionManager instead of UaSubscriptionManager. An instance of a derived class of UaServer can be passed to UaModule::initialize() to force the UaModule to use this instance instead of creating a UaServer

UaTransactionManager * UaServer::createUaTransactionManager ( ServerManager pServerManager,
UaSubscriptionManager pUaSubscriptionManager 
) [protected, virtual]

This function creates the UaTransactionManager. The virtual function can be overwritten by a derived class to create a class derived from UaTransactionManager instead of UaTransactionManager. An instance of a derived class of UaServer can be passed to UaModule::initialize() to force the UaModule to use this instance instead of creating a UaServer

OpcUa_StatusCode UaServer::DeleteMonitoredItems ( OpcUa_Endpoint  a_pEndpoint,
OpcUa_Handle  a_hCallContext,
OpcUa_DeleteMonitoredItemsRequest *  a_pRequest,
OpcUa_EncodeableType *  a_pRequestType 
)

The implementation for the DeleteMonitoredItems service.

Parameters:
a_pEndpointconfigured endpoints for the server.
a_hCallContextCallback context used for the transaction.
a_pRequestthe request of the current send information.
a_pRequestTypethe type of the Request.
Returns:
OPC UA status code
OpcUa_StatusCode UaServer::DeleteNodes ( OpcUa_Endpoint  a_pEndpoint,
OpcUa_Handle  a_hCallContext,
OpcUa_DeleteNodesRequest *  a_pRequest,
OpcUa_EncodeableType *  a_pRequestType 
)

The implementation for the DeleteNodes service.

Parameters:
a_pEndpointconfigured endpoints for the server.
a_hCallContextCallback context used for the transaction.
a_pRequestthe request of the current send information.
a_pRequestTypethe type of the Request.
Returns:
OPC UA status code
OpcUa_StatusCode UaServer::DeleteReferences ( OpcUa_Endpoint  a_pEndpoint,
OpcUa_Handle  a_hCallContext,
OpcUa_DeleteReferencesRequest *  a_pRequest,
OpcUa_EncodeableType *  a_pRequestType 
)

The implementation for the DeleteReferences service.

Parameters:
a_pEndpointconfigured endpoints for the server.
a_hCallContextCallback context used for the transaction.
a_pRequestthe request of the current send information.
a_pRequestTypethe type of the Request.
Returns:
OPC UA status code
OpcUa_StatusCode UaServer::DeleteSubscriptions ( OpcUa_Endpoint  a_pEndpoint,
OpcUa_Handle  a_hCallContext,
OpcUa_DeleteSubscriptionsRequest *  a_pRequest,
OpcUa_EncodeableType *  a_pRequestType 
)

The implementation for the DeleteSubscriptions service.

Parameters:
a_pEndpointconfigured endpoints for the server.
a_hCallContextCallback context used for the transaction.
a_pRequestthe request of the current send information.
a_pRequestTypethe type of the Request.
Returns:
OPC UA status code
OpcUa_StatusCode UaServer::FindServers ( OpcUa_Endpoint  a_pEndpoint,
OpcUa_Handle  a_hCallContext,
OpcUa_FindServersRequest *  a_pRequest,
OpcUa_EncodeableType *  a_pRequestType 
)

The implementation for the OpenSession service.

Parameters:
a_pEndpointconfigured endpoints for the server.
a_hCallContextCallback context used for the transaction.
a_pRequestthe request of the current send information.
a_pRequestTypethe type of the Request.
Returns:
OPC UA status code
OpcUa_StatusCode UaServer::GetEndpoints ( OpcUa_Endpoint  a_pEndpoint,
OpcUa_Handle  a_hCallContext,
OpcUa_GetEndpointsRequest *  a_pRequest,
OpcUa_EncodeableType *  a_pRequestType 
)

The implementation for the OpenSession service.

Parameters:
a_pEndpointconfigured endpoints for the server.
a_hCallContextCallback context used for the transaction.
a_pRequestthe request of the current send information.
a_pRequestTypethe type of the Request.
Returns:
OPC UA status code
OpcUa_StatusCode UaServer::HistoryRead ( OpcUa_Endpoint  a_pEndpoint,
OpcUa_Handle  a_hCallContext,
OpcUa_HistoryReadRequest *  a_pRequest,
OpcUa_EncodeableType *  a_pRequestType 
)

The implementation for the HistoryRead service.

Parameters:
a_pEndpointconfigured endpoints for the server.
a_hCallContextCallback context used for the transaction.
a_pRequestthe request of the current send information.
a_pRequestTypethe type of the Request.
Returns:
OPC UA status code
OpcUa_StatusCode UaServer::HistoryUpdate ( OpcUa_Endpoint  a_pEndpoint,
OpcUa_Handle  a_hCallContext,
OpcUa_HistoryUpdateRequest *  a_pRequest,
OpcUa_EncodeableType *  a_pRequestType 
)

The implementation for the HistoryUpdate service.

Parameters:
a_pEndpointconfigured endpoints for the server.
a_hCallContextCallback context used for the transaction.
a_pRequestthe request of the current send information.
a_pRequestTypethe type of the Request.
Returns:
OPC UA status code
UaStatus UaServer::initStackSettings ( ServerConfig pServerConfig )

Initialize stack from configuration.

OpcUa_StatusCode UaServer::ModifyMonitoredItems ( OpcUa_Endpoint  a_pEndpoint,
OpcUa_Handle  a_hCallContext,
OpcUa_ModifyMonitoredItemsRequest *  a_pRequest,
OpcUa_EncodeableType *  a_pRequestType 
)

The implementation for the ModifyMonitoredItems service.

Parameters:
a_pEndpointconfigured endpoints for the server.
a_hCallContextCallback context used for the transaction.
a_pRequestthe request of the current send information.
a_pRequestTypethe type of the Request.
Returns:
OPC UA status code
OpcUa_StatusCode UaServer::ModifySubscription ( OpcUa_Endpoint  a_pEndpoint,
OpcUa_Handle  a_hCallContext,
OpcUa_ModifySubscriptionRequest *  a_pRequest,
OpcUa_EncodeableType *  a_pRequestType 
)

The implementation for the ModifySubscription service.

Parameters:
a_pEndpointconfigured endpoints for the server.
a_hCallContextCallback context used for the transaction.
a_pRequestthe request of the current send information.
a_pRequestTypethe type of the Request.
Returns:
OPC UA status code
OpcUa_StatusCode UaServer::Publish ( OpcUa_Endpoint  a_pEndpoint,
OpcUa_Handle  a_hCallContext,
OpcUa_PublishRequest *  a_pRequest,
OpcUa_EncodeableType *  a_pRequestType 
)

The implementation for the Publish service.

Parameters:
a_pEndpointconfigured endpoints for the server.
a_hCallContextCallback context used for the transaction.
a_pRequestthe request of the current send information.
a_pRequestTypethe type of the Request.
Returns:
OPC UA status code
OpcUa_StatusCode UaServer::Read ( OpcUa_Endpoint  a_pEndpoint,
OpcUa_Handle  a_hCallContext,
OpcUa_ReadRequest *  a_pRequest,
OpcUa_EncodeableType *  a_pRequestType 
)

The implementation for the Read service.

Parameters:
a_pEndpointconfigured endpoints for the server.
a_hCallContextCallback context used for the transaction.
a_pRequestthe request of the current send information.
a_pRequestTypethe type of the Request.
Returns:
OPC UA status code
OpcUa_StatusCode UaServer::RegisterNodes ( OpcUa_Endpoint  a_pEndpoint,
OpcUa_Handle  a_hCallContext,
OpcUa_RegisterNodesRequest *  a_pRequest,
OpcUa_EncodeableType *  a_pRequestType 
)

The implementation for the RegisterNodes service.

Parameters:
a_pEndpointconfigured endpoints for the server.
a_hCallContextCallback context used for the transaction.
a_pRequestthe request of the current send information.
a_pRequestTypethe type of the Request.
Returns:
OPC UA status code
OpcUa_StatusCode UaServer::Republish ( OpcUa_Endpoint  a_pEndpoint,
OpcUa_Handle  a_hCallContext,
OpcUa_RepublishRequest *  a_pRequest,
OpcUa_EncodeableType *  a_pRequestType 
)

The implementation for the Republish service.

Parameters:
a_pEndpointconfigured endpoints for the server.
a_hCallContextCallback context used for the transaction.
a_pRequestthe request of the current send information.
a_pRequestTypethe type of the Request.
Returns:
OPC UA status code
void UaServer::secureChannelCreated ( OpcUa_UInt32  uSecureChannelId,
OpcUa_StatusCode  uStatus,
const UaString sSecurityPolicy,
OpcUa_UInt16  uSecurityMode,
const UaByteString clientCertificate 
)

Event to inform server about creation of a secure channel.

Parameters:
uSecureChannelIdthe SecureChannelId to be created.
uStatusError code
sSecurityPolicyThe security policy in case of open or renew.
uSecurityModeThe security mode, if the event type refers to a secure channel.
clientCertificatethe certificate the Client sends to the Server.
void UaServer::secureChannelDeleted ( OpcUa_UInt32  uSecureChannelId )

Event to inform server about deletion of a secure channel.

Parameters:
uSecureChannelIdthe SecureChannelId to be deleted.
OpcUa_StatusCode UaServer::SetMonitoringMode ( OpcUa_Endpoint  a_pEndpoint,
OpcUa_Handle  a_hCallContext,
OpcUa_SetMonitoringModeRequest *  a_pRequest,
OpcUa_EncodeableType *  a_pRequestType 
)

The implementation for the SetMonitoringMode service.

Parameters:
a_pEndpointconfigured endpoints for the server.
a_hCallContextCallback context used for the transaction.
a_pRequestthe request of the current send information.
a_pRequestTypethe type of the Request.
Returns:
OPC UA status code
OpcUa_StatusCode UaServer::SetPublishingMode ( OpcUa_Endpoint  a_pEndpoint,
OpcUa_Handle  a_hCallContext,
OpcUa_SetPublishingModeRequest *  a_pRequest,
OpcUa_EncodeableType *  a_pRequestType 
)

The implementation for the SetPublishingMode service.

Parameters:
a_pEndpointconfigured endpoints for the server.
a_hCallContextCallback context used for the transaction.
a_pRequestthe request of the current send information.
a_pRequestTypethe type of the Request.
Returns:
OPC UA status code
OpcUa_StatusCode UaServer::SetTriggering ( OpcUa_Endpoint  a_pEndpoint,
OpcUa_Handle  a_hCallContext,
OpcUa_SetTriggeringRequest *  a_pRequest,
OpcUa_EncodeableType *  a_pRequestType 
)

The implementation for the SetTriggering service.

Parameters:
a_pEndpointconfigured endpoints for the server.
a_hCallContextCallback context used for the transaction.
a_pRequestthe request of the current send information.
a_pRequestTypethe type of the Request.
Returns:
OPC UA status code
UaStatus UaServer::shutDown (  )

Shut down method for OPC UA server.

Returns:
Error code
UaStatus UaServer::startUp ( ServerManager pServerManager )

Start up method for OPC UA server.

Returns:
Error code
OpcUa_StatusCode UaServer::TransferSubscriptions ( OpcUa_Endpoint  a_pEndpoint,
OpcUa_Handle  a_hCallContext,
OpcUa_TransferSubscriptionsRequest *  a_pRequest,
OpcUa_EncodeableType *  a_pRequestType 
)

The implementation for the TransferSubscriptions service.

Parameters:
a_pEndpointconfigured endpoints for the server.
a_hCallContextCallback context used for the transaction.
a_pRequestthe request of the current send information.
a_pRequestTypethe type of the Request.
Returns:
OPC UA status code
OpcUa_StatusCode UaServer::TranslateBrowsePathsToNodeIds ( OpcUa_Endpoint  a_pEndpoint,
OpcUa_Handle  a_hCallContext,
OpcUa_TranslateBrowsePathsToNodeIdsRequest *  a_pRequest,
OpcUa_EncodeableType *  a_pRequestType 
)

The implementation for the TranslateBrowsePathsToNodeIds service.

Parameters:
a_pEndpointconfigured endpoints for the server.
a_hCallContextCallback context used for the transaction.
a_pRequestthe request of the current send information.
a_pRequestTypethe type of the Request.
Returns:
OPC UA status code
UaStatus UaServer::translateBrowsePathsToNodeIds ( const ServiceContext serviceContext,
OpcUa_TranslateBrowsePathsToNodeIdsRequest *  pRequest,
OpcUa_TranslateBrowsePathsToNodeIdsResponse *  pResponse 
) [virtual]

The core implementation for the TranslateBrowsePathsToNodeIds service. This method is called from TranslateBrowsePathsToNodeIds which implements all necessary common handling for service calls. This function adds only the aquisition of the data and can be overwritte by a derived class.

Parameters:
serviceContextService context including the session context used for the UA service call.
pRequestThe request data for the service call.
pResponseThe response structure for the service results.
Returns:
OPC UA status code
OpcUa_StatusCode UaServer::UnregisterNodes ( OpcUa_Endpoint  a_pEndpoint,
OpcUa_Handle  a_hCallContext,
OpcUa_UnregisterNodesRequest *  a_pRequest,
OpcUa_EncodeableType *  a_pRequestType 
)

The implementation for the UnregisterNodes service.

Parameters:
a_pEndpointconfigured endpoints for the server.
a_hCallContextCallback context used for the transaction.
a_pRequestthe request of the current send information.
a_pRequestTypethe type of the Request.
Returns:
OPC UA status code
virtual void UaServer::validateEndpoints ( UaEndpointArray &   ) [inline, protected, virtual]

This method is called before the endpoints are openened to allow a modification. This allows a derived class to add or modify endpoints for special use cases like internal communication with other components of a product.

OpcUa_StatusCode UaServer::Write ( OpcUa_Endpoint  a_pEndpoint,
OpcUa_Handle  a_hCallContext,
OpcUa_WriteRequest *  a_pRequest,
OpcUa_EncodeableType *  a_pRequestType 
)

The implementation for the Write service.

Parameters:
a_pEndpointconfigured endpoints for the server.
a_hCallContextCallback context used for the transaction.
a_pRequestthe request of the current send information.
a_pRequestTypethe type of the Request.
Returns:
OPC UA status code

The documentation for this class was generated from the following files:
  • /home/buildbot/work/uasdkcpp/src/uaserver/uaservercpp/uamodule/uaserver.h
  • /home/buildbot/work/uasdkcpp/src/uaserver/uaservercpp/uamodule/uaserver.cpp