How to determine is socket in working state
- From: "Alexander Krizhanovsky" <a.krizhanovsky@xxxxxxxxx>
- Date: 27 Jun 2006 07:39:32 -0700
Hello, All!
I have a TCP server which listens on port, says, 8888 and I need to
know how many clients connections with this port really works. I mean
socket works, if it's in ESTABLISHED state _AND_ any traffic was
sent/received by it.
netstat isn't useful for this situation because of a lot of connections
could be in ESTABLISHED state between listen() and accept() system
calls, but they aren't working. Yes, I know about
/proc/net/ip_conntrack, but I need a portable solution to FreeBSD and
Solaris and I don't want to demand netfilter compiled to kernel from
users.
Does anyone know a portable utility which can help me?
Thanks,
-- Alexander
.
- Prev by Date: Re: Own traffic shaping policy
- Next by Date: How to make the linked led lit in a constant rate on hub?
- Previous by thread: IP aliasing in Linux Red Hat 2.4.20-8
- Next by thread: How to make the linked led lit in a constant rate on hub?
- Index(es):
Relevant Pages
|