TipcSrvConnSetServerNamesList set the server names of the connection to RTserver in a linked list of strings
T_BOOL TipcSrvConnSetServerNamesList(srv
,server_names_list
) T_IPC_SRVsrv
; T_STR_LISTserver_names_list
;
srv
connection to RTserver
server_names_list
string list of server names
TRUE
if the server names were successfully set for the connection to RTserver, FALSE
otherwise.
If TipcSrvConnSetServerNamesList fails, it returns FALSE
and sets the global SmartSockets error number to one of:
TipcSrvConnSetServerNamesList sets the server names of the connection to RTserver in a linked list of strings. The string list values are copied to internal storage, so the caller does not need to maintain storage for them.
None
TipcSrvConnCreate, TipcSrvConnGetServerNamesList
This example sets the RTclient’s server names:
T_OPTION option; T_STR_LIST server_names; if (NULL == (option = TutOptionLookup("server_names"))) {
return
; /* error */
} if (!TutOptionGetStrList(option, &server_names)) {
return
; /* error */
} if (!TipcSrvConnSetServerNamesList(srv, server_names)) {
return
; /* error */
}
TIBCO SmartSockets™ Application Programming Interface Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |