TipcSrvConnGetServerNamesList get the server names of the connection to RTserver
T_BOOL TipcSrvConnGetServerNamesList(srv
,server_names_list_return
) T_IPC_SRVsrv
; T_STR_LIST *server_names_list_return
;
srv
connection to RTserver
server_names_list_return
storage for the string list of server names
TRUE
if the server names were successfully retrieved for the connection to RTserver, FALSE
otherwise.
If TipcSrvConnGetServerNamesList fails, it returns FALSE
and sets the global SmartSockets error number to:
TipcSrvConnGetServerNamesList gets the server names of the connection to RTserver.
The storage pointed to by server_names_list_return
should not be modified or freed. The storage is thread safe, but may be overwritten by subsequent calls to SmartSockets APIs within the same thread. If you wish to preserve the value, you should make a copy of the value.
TipcSrvConnSetServerNamesList, TipcSrvConnSetServerNames
This example gets the RTclient’s server names:
T_STR_LIST server_names; if (!TipcSrvConnGetServerNamesList(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 |