TipcSrvGetCurrentConnectedLcn -- get the logical connection name of connected RTserver
lcn_return
storage for RTserver logical connection name
TRUE
if logical connection name was successfully retrieved from RTserver handle, FALSE
otherwise.
If TipcSrvGetConnStatus fails, it returns FALSE
and sets the global SmartSockets error number to:
TipcSrvGetCurrentConnectedLcn gets the logical connection name of the RTserver to which this RTclient is connected. If the function cannot find the logical connection name, it stores the string Unknown
in lcn_return
.
There is no way to know ahead of time how much storage is needed for lcn_return
.
The value of lcn_return
cannot be NULL
. Storage for lcn_return
must be managed by the caller.
If TipcSrvGetCurrentConnectedLcn returns FALSE
, it does not store a value in lcn_return
.
TipcSrvConnGetCurrentConnectedLcn
This example prints the name of the logical connection name of RTserver:
T_CHAR lcn[80]; if (!TipcSrvGetCurrentConnectedLcn(lcn)) {return
; /* error */
} TutOut("Current Logical Connection Name is <%s>\n", lcn);
TIBCO SmartSockets™ Application Programming Interface Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |