TipcConnGetArch get the architecture name of a connection’s peer process
conn
connection to get architecture name from
arch_return
storage for connection architecture name
TRUE
if the architecture name was successfully retrieved from the connection, FALSE
otherwise.
If TipcConnGetArch fails, it returns FALSE
and sets the global SmartSockets error number to:
TipcConnGetArch gets the architecture name of a connection’s peer process (the process that this process is communicating with). The peer process architecture name is useful for diagnostic purposes. The architecture name is the SmartSockets architecture of the form Machine_OperatingSystem
(for example, sun4_solaris
). This value is stored in:
If TipcConnGetArch returns FALSE
, it does not store a value in arch_return
.
The value stored in arch_return
points directly into an internal data structure and should not be modified.
TipcConnGetNode, TipcConnGetPid, TipcConnGetUniqueSubject, TipcConnGetUser
This code fragment prints the architecture name of a connection’s peer process:
T_STR arch; if (!TipcConnGetArch(conn, &arch)) {
return
; /* error */
} TutOut("Connection peer process architecture name is <%s>.\n", arch);
TIBCO SmartSockets™ Application Programming Interface Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |