473,503 Members | 1,654 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with socket programming

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 .
I'm trying to find the answer from the books and internet and found a
kernel function : sockfd_lookup (it's similar what I want ).
But I have no idea about this function .
I don't know how to call this function because it's a kernel function .
Is there any other way to get the number of the socket server pending
queue ?

Thanks for your reading .

Jun 12 '06 #1
3 2147
On 11 Jun 2006 19:10:54 -0700, "Carl" <ca*******@gmail.com> wrote in
comp.lang.c:
Recently I got a problem with LINUX C socket programming.
Then you need to ask about it in a Linux group, like
news:comp.os.linux.development.apps.
I want to get how many clients are waiting for being accepted in the
socket server pending queue .
The C language and its standard library do not provide or support any
networking functions.
I'm trying to find the answer from the books and internet and found a
kernel function : sockfd_lookup (it's similar what I want ).
This is not a C function, it is a system-specific question extension
provided by your OS and compiler.
But I have no idea about this function .
Neither do we. It is part of Linux, not part of C.
I don't know how to call this function because it's a kernel function .
Is there any other way to get the number of the socket server pending
queue ?


The people in the group I recommended above can probably answer that.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Jun 12 '06 #2
Thanks for your reply and I will post this to the correct group.

Thanks :)
Jack Klein 寫道:
On 11 Jun 2006 19:10:54 -0700, "Carl" <ca*******@gmail.com> wrote in
comp.lang.c:
Recently I got a problem with LINUX C socket programming.


Then you need to ask about it in a Linux group, like
news:comp.os.linux.development.apps.
I want to get how many clients are waiting for being accepted in the
socket server pending queue .


The C language and its standard library do not provide or support any
networking functions.
I'm trying to find the answer from the books and internet and found a
kernel function : sockfd_lookup (it's similar what I want ).


This is not a C function, it is a system-specific question extension
provided by your OS and compiler.
But I have no idea about this function .


Neither do we. It is part of Linux, not part of C.
I don't know how to call this function because it's a kernel function .
Is there any other way to get the number of the socket server pending
queue ?


The people in the group I recommended above can probably answer that.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html


Jun 12 '06 #3
"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;}}}
Jun 12 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
13231
by: WIWA | last post by:
Hi, I want to make a UDP client server application that is conform to RFC868 (Time protocol). Both the UDP client and UDP server are in a test phase. The question is: when I add ...
9
2024
by: Harshit | last post by:
I am working on socket programming, encountered a new and strange problem today. I am using #define PORT 80, before main(), and I am calling PORT in one of the statments inside main(), I get an...
2
6955
by: chellappa | last post by:
Hi Every body!, i did a small Chat program in Linux C Socket Programm ... I am using stdout/stdin i did in single machinee i will work properly..but i want to run in differnet machine..i tried...
5
3668
by: John Sheppard | last post by:
Hi all, I am not sure that I am posting this in the right group but here it goes anyway. I am new to socket programming and I have been searching on the internet to the questions I am about to pose...
1
9269
by: Ryman | last post by:
Hello, I've just recently began network programming for c# (bought the book C# Network Programming) and I've ran into a few problems. Whenever I click the submit button on the client (to send the UDP...
10
4001
by: Uma - Chellasoft | last post by:
Hai, I am new to VB.Net programming, directly doing socket programming. In C, I will be able to map the message arrived in a socket directly to a structure. Is this possible in VB.Net. Can...
0
1887
by: shonen | last post by:
I'm currently attempting to connect to a shoutcast server pull down the information from here and then I'll parse it. I got this working with the httplib, which was great, the problem is I want...
8
4664
by: =?Utf-8?B?Sm9obg==?= | last post by:
Hi all, I am new to .net technologies. ASP.NET supports socket programming like send/receive in c or c++? I am developing web-site application in asp.net and code behind is Visual C#. In...
0
3548
by: george585 | last post by:
Hello! I am new to network programming, and understand just basics. Using some sample code, and having read documentation, I managed to create a simple app in C# and VB.NET. The application is...
1
20547
by: Ryan Liu | last post by:
Hi, I have a 100 clients/ one server application, use ugly one thread pre client approach. And both side user sync I/O. I frequently see the error on server side(client side code is same, but...
0
7271
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5570
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
1
4998
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1498
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
373
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.