Messages in this thread | | | Date | Fri, 21 Apr 2006 16:12:03 +0200 (MEST) | From | Jan Engelhardt <> | Subject | Re: unix socket connection tracking |
| |
>>> I feel dumb as never so please enlight me. Is ther a way to find out which >>> process is on the other end of a unix socket pointed by a specified fd in a process. >> >> getpeer*() > >getpeername(2) (that is the only man page I've got) > Exactly. And if you do the same on another socket from another process, you can match up what sockets are connected. You always need to examine more than one process. (Unless the process talks to itself.)
>That's not exactly what I want. Or even exactly not what I want. I want to learn >about sockets from a third person perspective. I've got a process which I can >strace(1), but nothing more, and I want to know who is it talking to. >
Jan Engelhardt -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |