UA ANSI C Server Professional  1.4.2.297
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
UaProviderServer

Modules

 ServerBrowse
 
 ServerEvents
 
 ServerRead
 
 ServerSubscription
 
 ServerWrite
 

Functions

OpcUa_StatusCode UaProvider_Server_ReadAsync (UaServer_ProviderReadContext *a_pReadCtx)
 A Asynchronous Read call. More...
 
OpcUa_StatusCode UaProvider_Server_WriteAsync (UaServer_ProviderWriteContext *a_pWriteCtx)
 A async write function. More...
 
OpcUa_StatusCode UaProvider_Server_BrowseAsync (UaServer_ProviderBrowseContext *a_pBrowseCtx)
 A Asynchronous Browse call. More...
 
OpcUa_StatusCode UaProvider_Server_TranslateAsync (UaServer_ProviderTranslateContext *a_pTranslateCtx)
 A Asynchronous Translate call. More...
 
OpcUa_StatusCode UaProvider_Server_RegisterNodesAsync (UaServer_ProviderRegisterNodesContext *a_pRegisterNodesCtx)
 A Asynchronous RegisterNodes call. More...
 
OpcUa_StatusCode UaProvider_Server_UnregisterNodesAsync (UaServer_ProviderUnregisterNodesContext *a_pUnregisterNodesCtx)
 A Asynchronous UnregisterNodes call. More...
 
OpcUa_StatusCode UaProvider_Server_AddItem (UaServer_MonitoredItem *a_pItem)
 Add an item. More...
 
OpcUa_StatusCode UaProvider_Server_RemoveItem (UaServer_MonitoredItem *a_pItem)
 Remove an item. More...
 
OpcUa_StatusCode UaProvider_Server_Subscribe (UaServer_ProviderSubscribeContext *a_pCtx)
 A callback function for the subscribe subscription. More...
 
OpcUa_StatusCode UaProvider_Server_Subscription_Initialize ()
 Initialize the Server Subscription.
 
OpcUa_StatusCode UaProvider_Server_Subscription_Cleanup ()
 Clean up the Server Subscription.
 
OpcUa_StatusCode UaProvider_Server_Cleanup ()
 Called by the server to clean up. More...
 
OpcUa_StatusCode UaProvider_Server_InitServerCapabilities ()
 Initialze ServerCapabilities node and children. More...
 
OpcUa_StatusCode UaProvider_Server_InitServerDiagnostics ()
 Initialze ServerDiagnostics node and children. More...
 
OpcUa_StatusCode UaProvider_Server_InitServerStatus ()
 Initialze ServerStatus node. More...
 
OpcUa_StatusCode UaProvider_Server_CreateAddressSpace ()
 Build complete Serveradressspace. More...
 
OpcUa_StatusCode UaProvider_Server_AddNamespace (const OpcUa_CharA *a_sNamespaceUri, OpcUa_UInt16 *a_piNamespaceIndex)
 This function adds the namespaces to the server. More...
 
OpcUa_StatusCode UaProvider_Server_GetNamespaceUris (const OpcUa_CharA ***a_ppsNamespaceUris)
 Get all possible and actual NamespaceUis. More...
 
OpcUa_StatusCode UaProvider_Server_VarUpdate (OpcUa_Void *a_pvCallbackData, OpcUa_Timer a_hTimer, OpcUa_UInt32 a_msecElapsed)
 This function refreshes all dynamic Variables. More...
 
OpcUa_StatusCode UaProvider_Server_Initialize (UaServer_Provider *a_pProvider, UaServer_pProviderInterface *a_pProviderInterface)
 Initializes the Server. More...
 
OpcUa_StatusCode UaProvider_Server_InitializeExtension (UaServer_ServerProviderInterface *pExtension, UaServer *pServer)
 Initializes the Extensions of the Server. More...
 

Variables

UaServer_Providerg_pServerProvider
 Pointer to the information of the provider. More...
 
UaServer_pProviderInterfaceg_pServerProviderInterface
 Pointer to the interface of the provider. More...
 
UaServer_Internal * g_pServerInternal
 Pointer to the global server object.
 
OpcUa_UInt16 g_UaProviderServer_NamespaceIndex = 0
 The namespace index of the provider. More...
 
OpcUa_UInt16 g_UaProviderServer_ApplicationNamespaceIndex = 1
 The namespace index of the application. More...
 
static const OpcUa_CharA ** g_UaServer_psNamespaceUris = OpcUa_Null
 The NamespaceUris.
 
static const OpcUa_CharA * g_UaServer_sOpcUaNamespaceUri = "http://opcfoundation.org/UA/"
 The Opc Ua NamespaceUris.
 
static OpcUa_UInt16 g_UaServer_nNamespaceUris = 1
 The number of NamespaceUris. More...
 
static const OpcUa_CharA * g_UaServer_sEmptyString = ""
 Empty String for unused elements of g_UaServer_psNamespaceUris.
 
static const OpcUa_CharA * g_UaServer_sLocaleIds []
 Locales.
 
static const OpcUa_CharA * g_UaServer_sServerProfiles []
 Server Profiles.
 

Detailed Description

Function Documentation

OpcUa_StatusCode UaProvider_Server_AddItem ( UaServer_MonitoredItem a_pItem)

Add an item.

Parameters
a_pItema pointer to the structure of a monitored item.
Returns
Error code.
OpcUa_StatusCode UaProvider_Server_AddNamespace ( const OpcUa_CharA *  a_sNamespaceUri,
OpcUa_UInt16 *  a_piNamespaceIndex 
)

This function adds the namespaces to the server.

Parameters
a_sNamespaceUrithe actual NamespaceUri.
a_piNamespaceIndexthe actual NamespaceIndex.
Returns
Error code.
OpcUa_StatusCode UaProvider_Server_BrowseAsync ( UaServer_ProviderBrowseContext a_pBrowseCtx)

A Asynchronous Browse call.

Parameters
[in]a_pBrowseCtxthe needed BrowseContext.
Returns
only good if successful.
OpcUa_StatusCode UaProvider_Server_Cleanup ( )

Called by the server to clean up.

Returns
only good if successful.
OpcUa_StatusCode UaProvider_Server_CreateAddressSpace ( )

Build complete Serveradressspace.

Returns
the OPC UA Status code.
OpcUa_StatusCode UaProvider_Server_GetNamespaceUris ( const OpcUa_CharA ***  a_ppsNamespaceUris)

Get all possible and actual NamespaceUis.

Parameters
a_ppsNamespaceUristhe actual NamespaceUri.
Returns
Error code.
OpcUa_StatusCode UaProvider_Server_Initialize ( UaServer_Provider a_pProvider,
UaServer_pProviderInterface a_pProviderInterface 
)

Initializes the Server.

Parameters
a_pProvidera pointer to the provider structure.
a_pProviderInterfacea pointer to the provider interface
Returns
Error code.
OpcUa_StatusCode UaProvider_Server_InitializeExtension ( UaServer_ServerProviderInterface *  pExtension,
UaServer pServer 
)

Initializes the Extensions of the Server.

Parameters
pExtensiona pointer to the extension of the server.
pServera pointer to the global server object.
Returns
only good if successful.
OpcUa_StatusCode UaProvider_Server_InitServerCapabilities ( )

Initialze ServerCapabilities node and children.

Returns
the OPC UA Status code.
OpcUa_StatusCode UaProvider_Server_InitServerDiagnostics ( )

Initialze ServerDiagnostics node and children.

Returns
the OPC UA Status code.
OpcUa_StatusCode UaProvider_Server_InitServerStatus ( )

Initialze ServerStatus node.

Returns
the OPC UA Status code.
OpcUa_StatusCode UaProvider_Server_ReadAsync ( UaServer_ProviderReadContext a_pReadCtx)

A Asynchronous Read call.

Parameters
a_pReadCtxthe needed ReadContext.
Returns
only good if successful.
OpcUa_StatusCode UaProvider_Server_RegisterNodesAsync ( UaServer_ProviderRegisterNodesContext a_pRegisterNodesCtx)

A Asynchronous RegisterNodes call.

Parameters
a_pRegisterNodesCtxthe needed RegisterNodesContext.
Returns
only good if successful.
OpcUa_StatusCode UaProvider_Server_RemoveItem ( UaServer_MonitoredItem a_pItem)

Remove an item.

Parameters
a_pItema pointer to the structure of a monitored item.
Returns
Error code.
OpcUa_StatusCode UaProvider_Server_Subscribe ( UaServer_ProviderSubscribeContext a_pCtx)

A callback function for the subscribe subscription.

Parameters
a_pCtxa pointer to the provider subscription context.
Returns
Error code.
OpcUa_StatusCode UaProvider_Server_TranslateAsync ( UaServer_ProviderTranslateContext a_pTranslateCtx)

A Asynchronous Translate call.

Parameters
a_pTranslateCtxthe needed TranslateContext.
Returns
only good if successful.
OpcUa_StatusCode UaProvider_Server_UnregisterNodesAsync ( UaServer_ProviderUnregisterNodesContext a_pUnregisterNodesCtx)

A Asynchronous UnregisterNodes call.

Parameters
a_pUnregisterNodesCtxthe needed UnregisterNodesContext.
Returns
only good if successful.
OpcUa_StatusCode UaProvider_Server_VarUpdate ( OpcUa_Void *  a_pvCallbackData,
OpcUa_Timer  a_hTimer,
OpcUa_UInt32  a_msecElapsed 
)

This function refreshes all dynamic Variables.

Parameters
a_pvCallbackDatathe actual callback data.
a_hTimerthe value of the timer.
a_msecElapsedthe elapsed msec for this operation.
Returns
only good if successful.
OpcUa_StatusCode UaProvider_Server_WriteAsync ( UaServer_ProviderWriteContext a_pWriteCtx)

A async write function.

Parameters
a_pWriteCtxa pointer to the writecontext.
Returns
only good if successful.

Variable Documentation

UaServer_Provider* g_pServerProvider

Pointer to the information of the provider.

UaServer_pProviderInterface* g_pServerProviderInterface

Pointer to the interface of the provider.

OpcUa_UInt16 g_UaProviderServer_ApplicationNamespaceIndex = 1

The namespace index of the application.

OpcUa_UInt16 g_UaProviderServer_NamespaceIndex = 0

The namespace index of the provider.

OpcUa_UInt16 g_UaServer_nNamespaceUris = 1
static

The number of NamespaceUris.