TipcSrvConnGetCurrentConnectedLcn get the logical connection name of the connected RTserver
srv
connection handle to RTserver
lcn_return
storage for RTserver logical connection name
TRUE
if logical connection name was successfully retrieved, FALSE
otherwise.
If TipcSrvConnGetCurrentConnectedLcn fails, it returns FALSE
and sets the global SmartSockets error number to:
TipcSrvConnGetCurrentConnectedLcn 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 TipcSrvConnGetCurrentConnectedLcn returns FALSE
, it does not store a value in lcn_return
.
This example prints the name of the logical connection name of RTserver:
T_IPC_SRV srv; T_CHAR lcn[80]; if (!TipcSrvConnGetCurrentConnectedLcn(srv, 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 |