ANSI C UA Server SDK
1.5.1.313
|
Macros | |
#define | OPCUA_CURRENT_READ OPCUA_CURRENT_READ_FUNC() |
#define | OPCUA_CURRENT_WRITE OPCUA_CURRENT_WRITE_FUNC() |
#define | OPCUA_HISTORY_READ OPCUA_HISTORY_READ_FUNC() |
#define | OPCUA_HISROTY_WRITE OPCUA_HISROTY_WRITE_FUNC() |
Functions | |
OpcUa_StatusCode | UaServer_ProviderList_AddProvider (UaServer *a_pServer, UaServer_Provider *a_pProvider) |
Adds a new provider to the server configuration. More... | |
OpcUa_StatusCode | UaServer_ProviderList_Create (UaServer *a_pServer) |
Initialize and Fill the Provider List. More... | |
OpcUa_StatusCode | UaServer_ProviderList_ReserveProviders (UaServer *a_pServer, int numProviders) |
Reserves space in provider list to avoid later reallocation when calling AddProvider. More... | |
OpcUa_StatusCode | UaServer_ProviderList_DeleteProvider (UaServer *a_pServer, OpcUa_UInt16 a_uNamespaceIndex) |
Deletes an existing provider. More... | |
UaServer_Provider * | UaServer_ProviderList_GetProvider (UaServer *a_pServer, OpcUa_UInt16 a_NamespaceIndex) |
Returns the provider for the given namespace index. More... | |
OpcUa_StatusCode | UaServer_CreateVariantStringArray (OpcUa_Variant *pVariant, const OpcUa_CharA **pStringArray, OpcUa_UInt32 uNumberOfStrings) |
ToDoDoc. More... | |
OpcUa_StatusCode | UaServer_CreateVariantUInt32Array (OpcUa_Variant *pVariant, OpcUa_UInt32 *pUInt32Array, OpcUa_UInt32 uNumberOfUInt32s) |
Create an array of Variant UInts. More... | |
OpcUa_Boolean | OpcUa_Variant_CompareDeadbandAbsolute (OpcUa_Variant *a, OpcUa_Variant *b, OpcUa_Double deadbandValue) |
Compares two variants considering a deadband value. More... | |
OpcUa_Boolean | OpcUa_Variant_CompareDeadbandPercent (OpcUa_Variant *a, OpcUa_Variant *b, OpcUa_Double deadbandValue, OpcUa_Double dLow, OpcUa_Double dHigh) |
Compares two variants considering a deadband percent value. More... | |
void | OpcUa_DateTime_Clone (OpcUa_DateTime *a_pValue, OpcUa_DateTime *a_pCopy) |
OpcUa_StatusCode | OpcUa_NodeId_Clone (OpcUa_NodeId *a_pValue, OpcUa_NodeId *a_pCopy) |
OpcUa_StatusCode | OpcUa_ExpandedNodeId_Clone (OpcUa_ExpandedNodeId *a_pValue, OpcUa_ExpandedNodeId *a_pCopy) |
OpcUa_StatusCode | OpcUa_String_Clone (OpcUa_String *a_pValue, OpcUa_String *a_pCopy) |
OpcUa_StatusCode | OpcUa_QualifiedName_Clone (OpcUa_QualifiedName *a_pValue, OpcUa_QualifiedName *a_pCopy) |
OpcUa_StatusCode | OpcUa_LocalizedText_Clone (OpcUa_LocalizedText *a_pValue, OpcUa_LocalizedText *a_pCopy) |
OpcUa_StatusCode | OpcUa_Variant_Clone (OpcUa_Variant *a_pValue, OpcUa_Variant *a_pCopy) |
OpcUa_StatusCode | OpcUa_NotificationMessage_Clone (OpcUa_NotificationMessage *a_pValue, OpcUa_NotificationMessage *a_pCopy) |
OpcUa_StatusCode | OpcUa_DataChangeNotification_Clone (OpcUa_DataChangeNotification *a_pValue, OpcUa_DataChangeNotification *a_pCopy) |
OpcUa_StatusCode | OpcUa_DiagnosticInfo_Clone (OpcUa_DiagnosticInfo *a_pValue, OpcUa_DiagnosticInfo *a_pCopy) |
OpcUa_StatusCode | OpcUa_DataValue_Clone (OpcUa_DataValue *a_pValue, OpcUa_DataValue *a_pCopy) |
OpcUa_StatusCode | OpcUa_MonitoredItemNotification_Clone (OpcUa_MonitoredItemNotification *a_pValue, OpcUa_MonitoredItemNotification *a_pCopy) |
OpcUa_StatusCode | OpcUa_ByteString_Clone (OpcUa_ByteString *a_pValue, OpcUa_ByteString *a_pCopy) |
OpcUa_StatusCode | OpcUa_XmlElement_Clone (OpcUa_XmlElement *a_pValue, OpcUa_XmlElement *a_pCopy) |
OpcUa_StatusCode | OpcUa_BrowseDescription_Clone (OpcUa_BrowseDescription *a_pValue, OpcUa_BrowseDescription *a_pCopy) |
OpcUa_StatusCode | OpcUa_ReferenceDescription_Clone (OpcUa_ReferenceDescription *a_pValue, OpcUa_ReferenceDescription *a_pCopy) |
OpcUa_StatusCode | OpcUa_BrowseResult_Clone (OpcUa_BrowseResult *a_pValue, OpcUa_BrowseResult *a_pCopy) |
OpcUa_StatusCode | UaServer_ParseIndexRange (const OpcUa_String *a_pString, UaServer_NumericRange *a_pRangeArray, OpcUa_UInt32 *a_pMaxRanges) |
Parses a NumericRange string. More... | |
OpcUa_StatusCode | UaServer_VariantNumericRangePlausible (OpcUa_Variant *a_pVariant, UaServer_NumericRange *a_pRangeArray, OpcUa_Int32 a_NumRanges) |
Check if the given NumericRangeArray fits the Variant. More... | |
OpcUa_StatusCode | UaServer_StringGetSubstring (const OpcUa_String *a_pString, OpcUa_UInt32 a_uFrom, OpcUa_UInt32 a_uTo, OpcUa_String **a_ppSubString) |
Returns a newly created string that is a substring of the given string. More... | |
OpcUa_StatusCode | UaServer_VariantAdjustElementsByNumericRanges (OpcUa_Variant *a_pVariant, UaServer_NumericRange *a_pRangeArray, OpcUa_Int32 a_NumRanges) |
Choose the elements defined in the NumericRange array in the given Variant. More... | |
OpcUa_UInt16 | UaServer_NamespaceIndex_GetByUri (const OpcUa_CharA *a_NamespaceURI) |
Returns the NamespaceIndex to the given NamespaceURI. More... | |
OpcUa_StatusCode | UaServer_GetNonValueAttribute (OpcUa_UInt32 a_AttributeId, OpcUa_BaseNode *a_pNode, OpcUa_Variant *a_pValue, UaServer_PublicSession *a_pSession) |
Fills the value of the given attribute of the node into a variant. More... | |
OpcUa_StatusCode | UaServer_DecryptPassword (UaServer_PublicSession *a_pSession, OpcUa_ByteString *a_bsPassword, OpcUa_String *a_sEncryptionAlgorithm, OpcUa_String *a_sPassword) |
Decrypts a password from an OpcUa_UserNameIdentityToken. More... | |
OpcUa_StatusCode | UaServer_VerifySignature (UaServer_PublicSession *a_pSession, OpcUa_ByteString *a_pUserCertificate, OpcUa_ByteString *a_pServerCertificate, OpcUa_SignatureData *a_pSignatureData) |
Checks the UserTokenSignature of a OpcUa_X509IdentityToken. More... | |
OpcUa_StatusCode | UaServer_GetUserIdentity (OpcUa_String *a_sUsername, OpcUa_Byte *a_pUID, OpcUa_Byte *a_pGID, OpcUa_String *a_sPasswordHash) |
Returns user identity information. More... | |
OpcUa_StatusCode | UaServer_GetUserGroups (OpcUa_String *a_sUsername, OpcUa_UInt16 *a_piNoGroups, OpcUa_Byte a_pGroups[]) |
Returns list of groups to which a user belongs. More... | |
OpcUa_StatusCode | UaServer_GetGroupId (OpcUa_String *a_sGroupname, OpcUa_Byte *a_pGID) |
Returns the GID for the five groupname. More... | |
#define OPCUA_CURRENT_READ OPCUA_CURRENT_READ_FUNC() |
#define OPCUA_CURRENT_WRITE OPCUA_CURRENT_WRITE_FUNC() |
#define OPCUA_HISROTY_WRITE OPCUA_HISROTY_WRITE_FUNC() |
#define OPCUA_HISTORY_READ OPCUA_HISTORY_READ_FUNC() |
OpcUa_StatusCode OpcUa_BrowseDescription_Clone | ( | OpcUa_BrowseDescription * | a_pValue, |
OpcUa_BrowseDescription * | a_pCopy | ||
) |
OpcUa_StatusCode OpcUa_BrowseResult_Clone | ( | OpcUa_BrowseResult * | a_pValue, |
OpcUa_BrowseResult * | a_pCopy | ||
) |
OpcUa_StatusCode OpcUa_ByteString_Clone | ( | OpcUa_ByteString * | a_pValue, |
OpcUa_ByteString * | a_pCopy | ||
) |
OpcUa_StatusCode OpcUa_DataChangeNotification_Clone | ( | OpcUa_DataChangeNotification * | a_pValue, |
OpcUa_DataChangeNotification * | a_pCopy | ||
) |
OpcUa_StatusCode OpcUa_DataValue_Clone | ( | OpcUa_DataValue * | a_pValue, |
OpcUa_DataValue * | a_pCopy | ||
) |
void OpcUa_DateTime_Clone | ( | OpcUa_DateTime * | a_pValue, |
OpcUa_DateTime * | a_pCopy | ||
) |
OpcUa_StatusCode OpcUa_DiagnosticInfo_Clone | ( | OpcUa_DiagnosticInfo * | a_pValue, |
OpcUa_DiagnosticInfo * | a_pCopy | ||
) |
OpcUa_StatusCode OpcUa_ExpandedNodeId_Clone | ( | OpcUa_ExpandedNodeId * | a_pValue, |
OpcUa_ExpandedNodeId * | a_pCopy | ||
) |
OpcUa_StatusCode OpcUa_LocalizedText_Clone | ( | OpcUa_LocalizedText * | a_pValue, |
OpcUa_LocalizedText * | a_pCopy | ||
) |
OpcUa_StatusCode OpcUa_MonitoredItemNotification_Clone | ( | OpcUa_MonitoredItemNotification * | a_pValue, |
OpcUa_MonitoredItemNotification * | a_pCopy | ||
) |
OpcUa_StatusCode OpcUa_NodeId_Clone | ( | OpcUa_NodeId * | a_pValue, |
OpcUa_NodeId * | a_pCopy | ||
) |
OpcUa_StatusCode OpcUa_NotificationMessage_Clone | ( | OpcUa_NotificationMessage * | a_pValue, |
OpcUa_NotificationMessage * | a_pCopy | ||
) |
OpcUa_StatusCode OpcUa_QualifiedName_Clone | ( | OpcUa_QualifiedName * | a_pValue, |
OpcUa_QualifiedName * | a_pCopy | ||
) |
OpcUa_StatusCode OpcUa_ReferenceDescription_Clone | ( | OpcUa_ReferenceDescription * | a_pValue, |
OpcUa_ReferenceDescription * | a_pCopy | ||
) |
OpcUa_StatusCode OpcUa_String_Clone | ( | OpcUa_String * | a_pValue, |
OpcUa_String * | a_pCopy | ||
) |
OpcUa_StatusCode OpcUa_Variant_Clone | ( | OpcUa_Variant * | a_pValue, |
OpcUa_Variant * | a_pCopy | ||
) |
OpcUa_Boolean OpcUa_Variant_CompareDeadbandAbsolute | ( | OpcUa_Variant * | a, |
OpcUa_Variant * | b, | ||
OpcUa_Double | deadbandValue | ||
) |
Compares two variants considering a deadband value.
[in] | a | The first variant to compare |
[in] | b | The second variant to compare |
[in] | deadbandValue | The deadband value to include |
OpcUa_Boolean OpcUa_Variant_CompareDeadbandPercent | ( | OpcUa_Variant * | a, |
OpcUa_Variant * | b, | ||
OpcUa_Double | deadbandValue, | ||
OpcUa_Double | dLow, | ||
OpcUa_Double | dHigh | ||
) |
Compares two variants considering a deadband percent value.
[in] | a | The first variant to compare |
[in] | b | The second variant to compare |
[in] | deadbandValue | The deadband value to include |
[in] | dLow | The low limit of the value's EURange |
[in] | dHigh | The high limit of the value's EURange |
OpcUa_StatusCode OpcUa_XmlElement_Clone | ( | OpcUa_XmlElement * | a_pValue, |
OpcUa_XmlElement * | a_pCopy | ||
) |
OpcUa_StatusCode UaServer_CreateVariantStringArray | ( | OpcUa_Variant * | pVariant, |
const OpcUa_CharA ** | pStringArray, | ||
OpcUa_UInt32 | uNumberOfStrings | ||
) |
ToDoDoc.
pVariant | a pointer to a variant variable. |
pStringArray | pointer to an array of Strings. |
uNumberOfStrings | the number of Strings. |
OpcUa_StatusCode UaServer_CreateVariantUInt32Array | ( | OpcUa_Variant * | pVariant, |
OpcUa_UInt32 * | pUInt32Array, | ||
OpcUa_UInt32 | uNumberOfUInt32s | ||
) |
Create an array of Variant UInts.
pVariant | a pointer to a variant variable. |
pUInt32Array | pointer to an array of UInts. |
uNumberOfUInt32s | the number of UInts. |
OpcUa_StatusCode UaServer_DecryptPassword | ( | UaServer_PublicSession * | a_pSession, |
OpcUa_ByteString * | a_bsPassword, | ||
OpcUa_String * | a_sEncryptionAlgorithm, | ||
OpcUa_String * | a_sPassword | ||
) |
Decrypts a password from an OpcUa_UserNameIdentityToken.
a_pSession | The session the OpcUa_UserNameIdentityToken belongs to. |
a_bsPassword | The encrypted password. |
a_sEncryptionAlgorithm | The encryption algorithm used to encrypt the password. If this string is empty, the password is assumed to be unencrypted and is copied to the output a_sPassword. |
a_sPassword | Pointer to a string where the decrypted password will be stored in. The string has to be freed after it has been used. |
OpcUa_StatusCode UaServer_GetGroupId | ( | OpcUa_String * | a_sGroupname, |
OpcUa_Byte * | a_pGID | ||
) |
Returns the GID for the five groupname.
This function was introduced in V1.3.0.
a_sGroupname | Name of the group. |
a_pGID | Numeric group ID to return. |
OpcUa_StatusCode UaServer_GetNonValueAttribute | ( | OpcUa_UInt32 | a_AttributeId, |
OpcUa_BaseNode * | a_pNode, | ||
OpcUa_Variant * | a_pValue, | ||
UaServer_PublicSession * | a_pSession | ||
) |
Fills the value of the given attribute of the node into a variant.
a_AttributeId | the attribute ID to get. |
a_pNode | the node to get the data from. |
a_pValue | the variant to store the data in. |
a_pSession | the session reading the value. |
OpcUa_StatusCode UaServer_GetUserGroups | ( | OpcUa_String * | a_sUsername, |
OpcUa_UInt16 * | a_piNoGroups, | ||
OpcUa_Byte | a_pGroups[] | ||
) |
Returns list of groups to which a user belongs.
a_sUsername | The username. |
a_piNoGroups | Number of groups. |
a_pGroups | Array of group IDs. |
OpcUa_StatusCode UaServer_GetUserIdentity | ( | OpcUa_String * | a_sUsername, |
OpcUa_Byte * | a_pUID, | ||
OpcUa_Byte * | a_pGID, | ||
OpcUa_String * | a_sPasswordHash | ||
) |
Returns user identity information.
a_sUsername | The username to lookup. |
a_pUID | The user id. |
a_pGID | The user's group id. |
a_sPasswordHash | The user's password hash. |
OpcUa_UInt16 UaServer_NamespaceIndex_GetByUri | ( | const OpcUa_CharA * | a_NamespaceURI | ) |
Returns the NamespaceIndex to the given NamespaceURI.
a_NamespaceURI | the NamespaceURI. |
OpcUa_StatusCode UaServer_ParseIndexRange | ( | const OpcUa_String * | a_pString, |
UaServer_NumericRange * | a_pRangeArray, | ||
OpcUa_UInt32 * | a_pMaxRanges | ||
) |
Parses a NumericRange string.
a_pString | String to parse. |
a_pRangeArray | Array of ranges to fill. |
a_pMaxRanges | Number of elements in array. |
OpcUa_StatusCode UaServer_ProviderList_AddProvider | ( | UaServer * | a_pServer, |
UaServer_Provider * | a_pProvider | ||
) |
Adds a new provider to the server configuration.
a_pServer | Deprecated, can be omitted. |
a_pProvider | Provider configuration. |
OpcUa_StatusCode UaServer_ProviderList_Create | ( | UaServer * | a_pServer | ) |
Initialize and Fill the Provider List.
a_pServer | a pointer to the actual server. |
OpcUa_StatusCode UaServer_ProviderList_DeleteProvider | ( | UaServer * | a_pServer, |
OpcUa_UInt16 | a_uNamespaceIndex | ||
) |
Deletes an existing provider.
a_pServer | Deprecated, can be omitted. |
a_uNamespaceIndex | One of the provider's namespace indices. |
UaServer_Provider * UaServer_ProviderList_GetProvider | ( | UaServer * | a_pServer, |
OpcUa_UInt16 | a_NamespaceIndex | ||
) |
Returns the provider for the given namespace index.
a_pServer | Server context. |
a_NamespaceIndex | The namespace index. |
OpcUa_StatusCode UaServer_ProviderList_ReserveProviders | ( | UaServer * | a_pServer, |
int | numProviders | ||
) |
Reserves space in provider list to avoid later reallocation when calling AddProvider.
a_pServer | Server context. |
numProviders | Number of provider elements to preallocate. |
OpcUa_StatusCode UaServer_StringGetSubstring | ( | const OpcUa_String * | a_pString, |
OpcUa_UInt32 | a_uFrom, | ||
OpcUa_UInt32 | a_uTo, | ||
OpcUa_String ** | a_ppSubString | ||
) |
Returns a newly created string that is a substring of the given string.
a_pString | the string to get the substring from. |
a_uFrom | the starting point of the substring. |
a_uTo | the last position of the substring. |
a_ppSubString | pointer to store the created substring in. |
OpcUa_StatusCode UaServer_VariantAdjustElementsByNumericRanges | ( | OpcUa_Variant * | a_pVariant, |
UaServer_NumericRange * | a_pRangeArray, | ||
OpcUa_Int32 | a_NumRanges | ||
) |
Choose the elements defined in the NumericRange array in the given Variant.
a_pVariant | the Variant to adjust. |
a_pRangeArray | Array of ranges. |
a_NumRanges | Number of elements in a_pRangeArray. |
OpcUa_StatusCode UaServer_VariantNumericRangePlausible | ( | OpcUa_Variant * | a_pVariant, |
UaServer_NumericRange * | a_pRangeArray, | ||
OpcUa_Int32 | a_NumRanges | ||
) |
Check if the given NumericRangeArray fits the Variant.
a_pVariant | The Variant to check. |
a_pRangeArray | Array of ranges to check. |
a_NumRanges | Number of elements in a_pRangeArray. |
OpcUa_StatusCode UaServer_VerifySignature | ( | UaServer_PublicSession * | a_pSession, |
OpcUa_ByteString * | a_pUserCertificate, | ||
OpcUa_ByteString * | a_pServerCertificate, | ||
OpcUa_SignatureData * | a_pSignatureData | ||
) |
Checks the UserTokenSignature of a OpcUa_X509IdentityToken.
a_pSession | The session the OpcUa_X509IdentityToken belongs to. |
a_pUserCertificate | The user certificate contained in the token. |
a_pServerCertificate | The server's certificate. |
a_pSignatureData | The signature created by the client. |