TipcPropertiesGet


Name

TipcPropertiesGet — get the property value for the specified property name

Synopsis

T_STR TipcPropertiesGet(props, name) 
T_IPC_PROPERTIES props; 
T_STR name; 

Arguments

props — properties table

name — property name

Return Values

Properties value if successful, NULL otherwise.

Diagnostics

If TipcPropertiesGet fails, it returns NULL and sets the global SmartSockets error code to one of:

Description

TipcPropertiesGet returns the value associated with the specified property name. If name is not found in the table, then TipcPropertiesGet returns NULL.

Caution

None

See Also

TipcPropertiesDestroy, TipcPropertiesCreate, TipcPropertiesSet

Examples

This example gets values from the properties table:

T_IPC_PROPERTIES props; 
T_BOOL status; 
 
status = TipcPropertiesSet(props, "prop1", "val1"); 
if (!status) { 
  return;  /* error */ 
} 
TutOut("The Key prop1 : has Value : %s\n", 
       TipcPropertiesGet(props, "prop1")); 

TIBCO SmartSockets™ Application Programming Interface
Software Release 6.8, July 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com