TipcSrvGetXtSource get source suitable for XtAppAddInput from the connection to RTserver
source_return
storage for source
TRUE
if source was successfully retrieved from the connection to RTserver, FALSE
otherwise.
If TipcSrvGetXtSource fails, it returns FALSE
and sets the global SmartSockets error number to one of:
TipcSrvGetXtSource gets an XtAppAddInput-compatible source from the connection to RTserver by calling TipcConnGetXtSource. This source allows SmartSockets IPC to be mixed with Motif or any other Xt-based widget set. See TipcConnGetXtSource for more information on Xt-compatible sources.
TipcSrvGetXtSource may attempt to automatically create a connection to RTserver. If RTclient has a warm connection to RTserver, TipcSrvGetXtSource does not use the warm connection, because the warm connection does not have a valid source. See TipcSrvCreate on automatic creation of connections and warm connections to RTserver.
If TipcSrvGetXtSource returns FALSE
, it does not store a value in source_return
.
TipcConnGetXtSource, TipcSrvGetSocket, TipcSrvSetSocket
This example creates a connection to RTserver, then gets and prints the Xt-compatible source of the connection:
T_INT4 source; if (!TipcSrvCreate(T_IPC_SRV_CONN_FULL)) {return
; /* error */
} if (!TipcSrvGetXtSource(&source)) {return
; /* error */
} TutOut("Source of connection to RTserver is <%d>.\n", source);
TIBCO SmartSockets™ Application Programming Interface Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |