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