SmartSockets uses options to control run-time configuration parameters that affect the operation of a process. You can create your own options that perform in a way similar to standard SmartSockets options, and you can write code to access and manipulate standard SmartSockets options. The types of options that are supported are defined in this way:
The option code provides a mechanism to verify a new option value before it is accepted. This is accomplished by specifying an option verify function that allows or disallows a new setting for an option value. It is defined in this way:
This function definition is used by TutOptionSetVerifyFunc and TutOptionGetVerifyFunc. There can only be one verify function for each option.
Occasionally, you may want to receive notification when the value of an option is changed. This is accomplished using an option change callback. These callbacks are called whenever the value of an option changes. There can be multiple option change callbacks for an option. The option callbacks are:
The callback function is called with an option change callback data structure, defined in this way:
typedef struct T_OPTION_CHANGE_CB_DATA_STRUCT { T_CB cb; T_PTR value; } T_OPTION_CHANGE_CB_DATA_STRUCT, *T_OPTION_CHANGE_CB_DATA;
Option change callbacks are managed with the functions TutOptionChangeCbCreate and TutOptionChangeCbLookup.
TIBCO SmartSockets™ Utilities Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |