server closes client connection right away
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > server closes client connection right away




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    server closes client connection right away  
yazwas


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-30-07 12:21 AM

Hello,
I'm writing an echo server /client application using C++, and I have
this problem, the program runs fine under my linux box, its FC4, but I
sent it to some guy to test it and he tells me that as soon as a
client connects it disconnects,
for example
./echosrv
Client 0 connected from 127.0.0.1 and port 43402
Connection closed for client 0
Client 1 connected from xx.xx.xx.xx and port 35272
Connection closed for client 1
and this happens if you try to connect from a localhost or from a
remote one,

does anyone has any idea, why this could be happening,

regards, Yazan






[ Post a follow-up to this message ]



    Re: server closes client connection right away  
Bin Chen


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-30-07 06:33 AM

On Jun 30, 7:52 am, yazwas <yaz...@gmail.com> wrote:
> Hello,
> I'm writing an echo server /client application using C++, and I have
> this problem, the program runs fine under my linux box, its FC4, but I
> sent it to some guy to test it and he tells me that as soon as a
> client connects it disconnects,
> for example
> ./echosrv
> Client 0 connected from 127.0.0.1 and port 43402
> Connection closed for client 0
> Client 1 connected from xx.xx.xx.xx and port 35272
> Connection closed for client 1
> and this happens if you try to connect from a localhost or from a
> remote one,
>
> does anyone has any idea, why this could be happening,

It is written by TCP, right? So you can setup a capture tool such as
ethereal to see what happened.

And post your code can be more useful here.







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 08:53 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register