ST_STATUS registerDomain(LPCTSTR domainname, int flags );
Exception registerDomain(String domainname, int flags );
This method registers the client to receive updates from the DataHub when the value of any points in the specified domain change. The onPointChange method is called for each point update received. The registerDomain method may be called more than once, and on different domains.
Upon registering the domain, all points currently in that domain of the DataHub are immediately transmitted to the client. Points that are subsequently created will only be sent if the DHC_FLAG_REG_FUTURE flag is specified. The DHC_FLAG_REG_QUALIFY flag is useful for distinguishing points from different domains that have the same name.
In a typical scenario, either there is no need to register for all points, or the point names are not even known. In either case, you can use the DHC_FLAG_REG_ONCEONLY flag to generate an initial list of all available points in the specified domain. Then you can call registerPoint on any points of interest, as they are received in onPointChange.
Copyright © 1995-2006 by Cogent Real-Time Systems, Inc. All rights reserved.