Operating System - HP-UX
1833883 Members
1485 Online
110063 Solutions
New Discussion

Re: reading socket queue's

 
Jamie Rancourt
Occasional Advisor

reading socket queue's

Hi,

I have a web application that sends/receives data from the web server using unix domain sockets. I need to find a way to read the socket to find out how many requests are pending in the queue. The trick is that I must be able to read them without removing them from the queue. Does anyone have any suggestions.

Thanks,

Jamie
4 REPLIES 4
Vincenzo Restuccia
Honored Contributor

Re: reading socket queue's

A. Clay Stephenson
Acclaimed Contributor

Re: reading socket queue's

Hi Jamie,

I need a little more data. Do you have access to the source code or must this be done from the outside? Is it C or Perl. If you have source code then the select system call will get you started or you could go ahead and read the data but store it in a buffer for the application's access.

Clay
If it ain't broke, I can fix that.
Jamie Rancourt
Occasional Advisor

Re: reading socket queue's

Clay,

Unfortunately I don't have access to the source. I need to achieve this from the outside, in which case either Perl or C would do.

Jamie
A. Clay Stephenson
Acclaimed Contributor

Re: reading socket queue's

Hi Jamie,

In that case, this does not appear to be doable. I'm afraid that lsof or netstat will be of little use in this case.
If it ain't broke, I can fix that.