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