Networking Forums

Networking Forums > Computer Networking > Linux Networking > How to determine is socket in working state

Reply
Thread Tools Display Modes

How to determine is socket in working state

 
 
Alexander Krizhanovsky
Guest
Posts: n/a

 
      06-27-2006, 02:39 PM
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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change of parameters of the WORKING SOCKET Pavel Vasilyev Linux Networking 9 07-03-2007 09:34 PM
Test socket on Master Socket not working Kevin Cowans Broadband 14 11-15-2006 09:17 PM
how get state of socket in c tomek Linux Networking 1 12-01-2004 06:17 PM
So many socket connections in FIN_WAIT_1 state Ankur Desai Windows Networking 0 01-24-2004 07:06 AM
netlink socket to receive route updates not working??? Deepak Linux Networking 0 09-29-2003 09:40 AM



1 2 3 4 5 6 7 8 9 10 11