Working With The Server Object

Working With The Server Object

Each Server object functions as a complete server. An application can create one or more server objects.

The Server object contains functions to manage the following classes:

Every attribute that affects Server object operation is contained within one of the classes. When a Server object is created, all attributes are initialized to their default ("factory") values. If you want a newly-created Server object to have any attributes other than the "factory" defaults, you need to import the settings from a configuration file or set them individually.

Get a copy of any of the sub-objects by calling its "Get" function (for example, GetNetworkProperties). Any changes made to a sub-object does not affect the ltmsServer object until its "Set" function is called (for example, SetNetworkProperties).

All attribute values are stored in memory and are lost when the Server object is released, unless they have been saved by calling an export function before the object is released.

If you change any value of a sub-object's attributes, or call its "Reset" function (for example, NetworkProperties,Reset), it changes the parent ltmsServer object's sub-object properties. If you call Server.ResetConfig every sub-object's attributes are changed back to "factory" defaults.

If you call one of the ltmsServer object's import or export functions, the values of all of the sub-objects attributes are imported from or exported to an XML configuration file. Before using the  Server object, you need to set a runtime license using the LicenseManager Object object.  See Setting a Runtime License for more details.

Help Version 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Multimedia
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.