UA Ansi C Server Professional
1.3.1.232
|
Data Structures | |
struct | _UaServer_SubscriptionManager |
A UaServer SubscriptionManager struct. More... |
Functions | |
OpcUa_Void | UaServer_SubscriptionManager_PublishCallback () |
DoSubscription is called from Timer. | |
OpcUa_StatusCode | UaServer_SubscriptionManager_TimerCallback (OpcUa_Void *a_pvCallbackData, OpcUa_Timer a_hTimer, OpcUa_UInt32 a_msecElapsed) |
A callback function for the timer. | |
OpcUa_StatusCode | UaServer_SubscriptionManager_TimerStoppedCallback (OpcUa_Void *a_pvCallbackData, OpcUa_Timer a_hTimer, OpcUa_UInt32 a_msecElapsed) |
A callback function for the timer. | |
OpcUa_StatusCode | UaServer_SubscriptionManager_InitSubscriptionTimer () |
Initialising Subscription. | |
OpcUa_Void | UaServer_SubscriptionManager_CleanupSubscriptionTimer () |
Cleans up everything InitSubscriptionTimer has initialized. | |
OpcUa_Void | UaServer_SubscriptionManager_LockList () |
Locks the access to g_SubscriptionLists. | |
OpcUa_Void | UaServer_SubscriptionManager_UnlockList () |
Unlocks the access to g_SubscriptionLists. | |
OpcUa_StatusCode | UaServer_SubscriptionManager_AddSubscriptionToSortedList (UaServer_Subscription *pSubscription) |
Adds subscription to sorted sampling list. | |
OpcUa_Void | UaServer_SubscriptionManager_RemoveSubscriptionFromSortedList (UaServer_Subscription *pSubscription) |
Removes the subscription from the according sampling list You should lock the list before using this function with LockSubscriptionList. | |
OpcUa_StatusCode | UaServer_SubscriptionManager_Create (UaServer_SubscriptionManager **a_ppSubscriptionManager, OpcUa_UInt32 a_uMinPublishRate) |
Create A New Subscription Manager. | |
OpcUa_StatusCode | UaServer_SubscriptionManager_Delete (UaServer_SubscriptionManager **a_ppSubscriptionManager) |
Delete A Subscription Manager. | |
OpcUa_StatusCode | UaServer_SubscriptionManager_AddSubscription (UaServer_SubscriptionManager *a_pSubscriptionManager, UaServer_Subscription *a_pSubscription) |
Add A Subscription To A Subscription Manager. | |
OpcUa_StatusCode | UaServer_SubscriptionManager_DeleteSubscription (UaServer_SubscriptionManager *a_pSubscriptionManager, OpcUa_UInt32 a_uSubscriptionId) |
Delete A Subscription From A Subscription Manager. | |
OpcUa_StatusCode | UaServer_SubscriptionManager_FindSubscription (UaServer_SubscriptionManager *a_pSubscriptionManager, UaServer_Subscription **a_ppSubscription, OpcUa_UInt32 a_uSubscriptionId) |
Find A Subscription From A Subscription Manager. | |
OpcUa_StatusCode | UaServer_SubscriptionManager_DeleteAllSubscriptionsBySession (UaServer_Session *pSession) |
Delete all subscriptions, that belong to the given session. | |
OpcUa_StatusCode | UaServer_SubscriptionManager_UnlinkAllSubscriptionsBySession (UaServer_Session *pSession) |
Remove handles to a given session handles from all subscriptions. |
OpcUa_StatusCode UaServer_SubscriptionManager_AddSubscription | ( | UaServer_SubscriptionManager * | a_pSubscriptionManager, |
UaServer_Subscription * | a_pSubscription | ||
) |
Add A Subscription To A Subscription Manager.
a_pSubscriptionManager | a pointer to the actual subscription manager. |
a_pSubscription | a pointer to the subscription. |
OpcUa_StatusCode UaServer_SubscriptionManager_AddSubscriptionToSortedList | ( | UaServer_Subscription * | pSubscription | ) |
Adds subscription to sorted sampling list.
This functions sorts the item into the according sampling lists. You should lock the list before using this function with LockSubscriptionList.
pSubscription | the actual subscription. |
OpcUa_Void UaServer_SubscriptionManager_CleanupSubscriptionTimer | ( | ) |
Cleans up everything InitSubscriptionTimer has initialized.
What else?
OpcUa_StatusCode UaServer_SubscriptionManager_Create | ( | UaServer_SubscriptionManager ** | a_ppSubscriptionManager, |
OpcUa_UInt32 | a_uMinPublishRate | ||
) |
Create A New Subscription Manager.
a_ppSubscriptionManager | a pointer to the actual subscription manager. |
a_uMinPublishRate | the minimum publish rate. |
OpcUa_StatusCode UaServer_SubscriptionManager_Delete | ( | UaServer_SubscriptionManager ** | a_ppSubscriptionManager | ) |
Delete A Subscription Manager.
a_ppSubscriptionManager | a pointer to the actual subscription manager. |
OpcUa_StatusCode UaServer_SubscriptionManager_DeleteAllSubscriptionsBySession | ( | UaServer_Session * | pSession | ) |
Delete all subscriptions, that belong to the given session.
pSession | a pointer to the actual session. |
OpcUa_StatusCode UaServer_SubscriptionManager_DeleteSubscription | ( | UaServer_SubscriptionManager * | a_pSubscriptionManager, |
OpcUa_UInt32 | a_uSubscriptionId | ||
) |
Delete A Subscription From A Subscription Manager.
a_pSubscriptionManager | a pointer to the actual subscription manager. |
a_uSubscriptionId | the actual id of the subscription. |
OpcUa_StatusCode UaServer_SubscriptionManager_FindSubscription | ( | UaServer_SubscriptionManager * | a_pSubscriptionManager, |
UaServer_Subscription ** | a_ppSubscription, | ||
OpcUa_UInt32 | a_uSubscriptionId | ||
) |
Find A Subscription From A Subscription Manager.
a_pSubscriptionManager | a pointer to the actual subscription manager. |
a_ppSubscription | a pointer to the subscription structure. |
a_uSubscriptionId | the actual id of the subscription. |
OpcUa_StatusCode UaServer_SubscriptionManager_InitSubscriptionTimer | ( | ) |
Initialising Subscription.
This functions sets up configured sampling rates and system timer.
OpcUa_Void UaServer_SubscriptionManager_PublishCallback | ( | ) |
DoSubscription is called from Timer.
It decrements the counters for the different sampling rates and does the actual subscription handling if one has expired.
OpcUa_Void UaServer_SubscriptionManager_RemoveSubscriptionFromSortedList | ( | UaServer_Subscription * | pSubscription | ) |
Removes the subscription from the according sampling list You should lock the list before using this function with LockSubscriptionList.
pSubscription | the actual subscription. |
OpcUa_StatusCode UaServer_SubscriptionManager_TimerCallback | ( | OpcUa_Void * | a_pvCallbackData, |
OpcUa_Timer | a_hTimer, | ||
OpcUa_UInt32 | a_msecElapsed | ||
) |
A callback function for the timer.
a_pvCallbackData | the actual callback data. |
a_hTimer | the value of the timer. |
a_msecElapsed | the elapsed msec for this operation. |
OpcUa_StatusCode UaServer_SubscriptionManager_TimerStoppedCallback | ( | OpcUa_Void * | a_pvCallbackData, |
OpcUa_Timer | a_hTimer, | ||
OpcUa_UInt32 | a_msecElapsed | ||
) |
A callback function for the timer.
a_pvCallbackData | the actual callback data. |
a_hTimer | the value of the timer. |
a_msecElapsed | the elapsed msec for this operation. |
OpcUa_StatusCode UaServer_SubscriptionManager_UnlinkAllSubscriptionsBySession | ( | UaServer_Session * | pSession | ) |
Remove handles to a given session handles from all subscriptions.
pSession | a pointer to the actual session. |