ANSI C Based OPC UA Client/Server SDK
1.8.1.381
|
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... | |
UaServer_Provider * | UaServer_ProviderList_GetProviderByName (UaServer *a_pServer, OpcUa_String *a_pProviderName) |
Returns the provider with the given name. 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... | |
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, const 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_GetUserIdentity (OpcUa_String *a_sUsername, OpcUa_uid_t *a_pUID, OpcUa_gid_t *a_pGID, OpcUa_String *a_sPasswordHash) |
Returns user identity information. More... | |
OpcUa_StatusCode | UaServer_GetUserIdFromFile (OpcUa_String *a_sUsername, OpcUa_uid_t *a_pUID, OpcUa_gid_t *a_pGID) |
Returns user identity information. More... | |
OpcUa_StatusCode | UaServer_GetGroupIdFromFile (OpcUa_String *a_sGroupname, OpcUa_gid_t *a_pGID) |
Returns the GID for the given groupname. More... | |
OpcUa_StatusCode | UaServer_GetUserGroupsFromFile (OpcUa_String *a_sUsername, OpcUa_UInt16 *a_piNoGroups, OpcUa_gid_t a_pGroups[]) |
Returns list of groups to which a user belongs. More... | |
OpcUa_StatusCode | UaServer_GetUserPasswordHashFromFile (OpcUa_String *a_sUsername, OpcUa_String *a_sPasswordHash) |
Returns user password information. More... | |
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 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_GetGroupIdFromFile | ( | OpcUa_String * | a_sGroupname, |
OpcUa_gid_t * | a_pGID | ||
) |
Returns the GID for the given groupname.
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, | ||
const 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_GetUserGroupsFromFile | ( | OpcUa_String * | a_sUsername, |
OpcUa_UInt16 * | a_piNoGroups, | ||
OpcUa_gid_t | 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_uid_t * | a_pUID, | ||
OpcUa_gid_t * | 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_StatusCode UaServer_GetUserIdFromFile | ( | OpcUa_String * | a_sUsername, |
OpcUa_uid_t * | a_pUID, | ||
OpcUa_gid_t * | a_pGID | ||
) |
Returns user identity information.
a_sUsername | The username to lookup. |
a_pUID | The user id. |
a_pGID | The user's group id. |
OpcUa_StatusCode UaServer_GetUserPasswordHashFromFile | ( | OpcUa_String * | a_sUsername, |
OpcUa_String * | a_sPasswordHash | ||
) |
Returns user password information.
a_sUsername | The username to lookup. |
a_sPasswordHash | The hash of the user's password. |
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. |
UaServer_Provider * UaServer_ProviderList_GetProviderByName | ( | UaServer * | a_pServer, |
OpcUa_String * | a_pProviderName | ||
) |
Returns the provider with the given name.
a_pServer | Server context. |
a_pProviderName | The name to search for. |
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. |