Run netstat!  Look at the man page for details!

-----Original Message-----
From:   [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Glynn Clements
Sent:   August 12, 1999 4:28 AM
To:     [EMAIL PROTECTED]
Cc:     [EMAIL PROTECTED]
Subject:        Re: What's the easiest way to find if a socket is connected?


[EMAIL PROTECTED] wrote:

> I know that I can read proc/X/fd, and crossreference with /proc/net/tcp,
but
> there must be an easier way to discover if a socket is connected or not.

Why do you need to read proc/X/fd? /proc/net/tcp should suffice.

--
Glynn Clements <[EMAIL PROTECTED]>

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to