I am working on a test program for socket I/O where I am trying to find
the name of the user connected to a socket. The system I am doing this
on is distributed so one user would be logged on (usually) to any one
workstation at a time. I am able to get the IP address of the calling
machine using getpeername(), but I need to get the username as well.
I know rusers can give me this info, but I figured it would probably be
faster if I incorporated the rusers code into my own program instead of
shelling out to an rusers process. So, does anyone out there know how
rusers works on a spcific machine?
+---------------------------------+------------------------------+
| Brian Smith | "It's wonderous...but it's |
| Computing Services | not for the timid." - Q |
| UNC C*te | |
+---------------------------------+------------------------------+