DANSrv Reference
DefineCallbacks Method
See Also  Send Feedback
NSPluginNet4 Assembly > NSPlugin Namespace > GenericServer Class : DefineCallbacks Method

dlgAddItem
Add an item to the server's address space
dlgDeleteItem
Remove an item from the server's address space. NOT supported in this version.
dlgShutDownRequest
Initiates the server shutdown.
dlgSetItemValue
Writes a new item value into the server's cache
dlgGetRefreshNeed
Returns an array of handles of the items that need be refreshed.
dlgSetServerState
Returns information about the current server state.
dlgGetServerInfo
Returns information about the current server usage.
dlgGetItemInfo
Returns information about an item.

Glossary Item Box

This method is called from the generic server at startup. It passes the callback methods supported by the generic server. These callback methods can be called anytime to exchange data with the generic server.

The DefineCallbacks method must not be overloaded or changed. The default implementation stores the delegates for later callbacks.

Syntax

Visual Basic (Usage)Copy Code
Dim instance As GenericServer
Dim dlgAddItem As AddItem
Dim dlgDeleteItem As DeleteItem
Dim dlgShutDownRequest As ShutDownRequest
Dim dlgSetItemValue As SetItemValue
Dim dlgGetRefreshNeed As GetRefreshNeed
Dim dlgSetServerState As SetServerState
Dim dlgGetServerInfo As GetServerInfo
Dim dlgGetItemInfo As GetItemInfo
 
instance.DefineCallbacks(dlgAddItem, dlgDeleteItem, dlgShutDownRequest, dlgSetItemValue, dlgGetRefreshNeed, dlgSetServerState, dlgGetServerInfo, dlgGetItemInfo)

Parameters

dlgAddItem
Add an item to the server's address space
dlgDeleteItem
Remove an item from the server's address space. NOT supported in this version.
dlgShutDownRequest
Initiates the server shutdown.
dlgSetItemValue
Writes a new item value into the server's cache
dlgGetRefreshNeed
Returns an array of handles of the items that need be refreshed.
dlgSetServerState
Returns information about the current server state.
dlgGetServerInfo
Returns information about the current server usage.
dlgGetItemInfo
Returns information about an item.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2017 Copyright Advosol Inc. All Rights Reserved.