TipcSrvConnSubjectGetDefaultPrefix get the default subject prefix of the connection to RTserver
T_BOOL TipcSrvConnSubjectGetDefaultPrefix(srv
,default_prefix_return
) T_IPC_SRVsrv
; T_STR*default_prefix_return
;
srv
connection to RTserver
default_prefix_return
returned default subject prefix
TRUE
if the default subject prefix was successfully retrieved for the connection to RTserver, FALSE
otherwise.
If TipcSrvConnSubjectGetDefaultPrefix fails, it returns FALSE
and sets the global SmartSockets error number to:
TipcSrvConnSubjectGetDefaultPrefix gets the default subject prefix of the connection to RTserver.
The storage pointed to by default_prefix_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.
TipcSrvConnSubjectSetDefaultPrefix
This example gets the RTclient’s default subject prefix:
T_STR default_prefix; if (!TipcSrvConnSubjectGetDefaultPrefix(srv, &default_prefix)) {
return
; /* error */
}
TIBCO SmartSockets™ Application Programming Interface Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |