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