TutOptionSetReadOnly set whether or not an option is read-only
option
option to set
read_only
sets whether or not the option is read-only
TRUE
if operation was successful, FALSE
otherwise.
If TutOptionSetReadOnly fails, it returns FALSE
and sets the global SmartSockets error number to one of:
TutOptionSetReadOnly sets whether or not option
is read-only. A read-only option is an option whose value cannot be changed.
None
TutOptionGetReadOnly, TutOptionLookup
This example makes an option read-only:
T_OPTION opt; opt = TutOptionLookup("any_option"); if (opt == NULL) {/* error */
} if (!TutOptionSetReadOnly(opt, TRUE)) {/* error */
}
TIBCO SmartSockets™ Utilities Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |