"Carl" <ca*******@gmail.com> writes:
Recently I got a problem with LINUX C socket programming.
I want to get how many clients are waiting for being accepted in the
socket server pending queue .
Even if you could find out, it's hard to tell what you could do
with this information. The number of clients waiting to be
accepted can change (increase or decrease) at any time. You
wouldn't be able to check and act on the information as an atomic
action.
Oops--I just noticed that this is comp.lang.c. This newsgroup is
not a good place to ask this question. If you really want to ask
about Linux specifically, then you should ask in a Linux
newsgroup; otherwise, comp.unix.programming is a good place for
Unix-related questions.
--
char a[]="\n .CJacehknorstu";int putchar(int);int main(void){unsigned long b[]
={0x67dffdff,0x9aa9aa6a,0xa77ffda9,0x7da6aa6a,0xa6 7f6aaa,0xaa9aa9f6,0x11f6},*p
=b,i=24;for(;p+=!*p;*p/=4)switch(0[p]&3)case 0:{return 0;for(p--;i--;i--)case+
2:{i++;if(i)break;else default:continue;if(0)case 1:putchar(a[i&15]);break;}}}