Can any one help me!! (Socket Programming)

This is a discussion on Can any one help me!! (Socket Programming) within the Linux Networking forums, part of the Linux Forums category; Connetion reset by peers (Socket Programming) in a Clinet Server Model ???? Hi All I have made a concurrent client-server ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-18-2005
girishdomain@gmail.com
 
Posts: n/a
Default Can any one help me!! (Socket Programming)

Connetion reset by peers (Socket Programming)
in a Clinet Server Model ????

Hi All

I have made a concurrent client-server model in c++.
when i try to send a large file into packets to clinet side.
After receiving some packets to clinet side, connection is reset.
May be because of burst of packets at once at clinet side.

can any one help me to come out from this problem
plzzzzzzzzzzzzzzzzzzzzzzzzzzzz**zzzzzzzzzzzzzzzzzz z


thanks
girish

Reply With Quote
  #2 (permalink)  
Old 05-18-2005
Bob Hauck
 
Posts: n/a
Default Re: Can any one help me!! (Socket Programming)

On 17 May 2005 22:01:20 -0700, girishdomain@gmail.com
<girishdomain@gmail.com> wrote:

> After receiving some packets to clinet side, connection is reset.
> May be because of burst of packets at once at clinet side.


Maybe because client is crashing and the socket gets closed.


--
-| Bob Hauck
-| A proud member of the reality-based community.
-| http://www.haucks.org/
Reply With Quote
  #3 (permalink)  
Old 05-19-2005
girishdomain@gmail.com
 
Posts: n/a
Default Re: Can any one help me!! (Socket Programming)

yes so i have delay for one second between each two packets now it
works fine
but it is too slow to transfer a file.
for 100kb file it will take 100 second
how can i improve ................

Reply With Quote
  #4 (permalink)  
Old 05-19-2005
gg-csf@dmztest.vsr.ambisys.net
 
Posts: n/a
Default Re: Can any one help me!! (Socket Programming)

What system is your application running on? What protocol are you
using? Do you know how many packets (and how many bytes) get through
before the reset?

G

Reply With Quote
  #5 (permalink)  
Old 05-19-2005
girishdomain@gmail.com
 
Posts: n/a
Default Re: Can any one help me!! (Socket Programming)

i working on linux 2.4
connection was reset sometimes ajust before last packet and sometimes
after receiving 12-13 packets

Reply With Quote
  #6 (permalink)  
Old 05-19-2005
girishdomain@gmail.com
 
Posts: n/a
Default Re: Can any one help me!! (Socket Programming)

sometimes just before last packet and sometime after receiving 12-13
packets
i am working on linux 2.4

Reply With Quote
  #7 (permalink)  
Old 05-20-2005
gg-csf@dmztest.vsr.ambisys.net
 
Posts: n/a
Default Re: Can any one help me!! (Socket Programming)

Hi!

girishdomain@gmail.com wrote:
> i working on linux 2.4
> connection was reset sometimes ajust before last packet and sometimes
> after receiving 12-13 packets


Are you using TCP, UDP, Unix domain sockets, or something else? If Unix
domain sockets, are you using datagram or stream mode? Also are you
using any option flags on the sendmsg/send call?

Thanks!

G

Reply With Quote
  #8 (permalink)  
Old 05-24-2005
girishdomain@gmail.com
 
Posts: n/a
Default Re: Can any one help me!! (Socket Programming)

I am using TCP stream mode with no flags

Reply With Quote
  #9 (permalink)  
Old 05-25-2005
David Schwartz
 
Posts: n/a
Default Re: Can any one help me!! (Socket Programming)


<girishdomain@gmail.com> wrote in message
news:1116930415.209265.56040@g44g2000cwa.googlegro ups.com...

>I am using TCP stream mode with no flags


Most likely your program erroneously assumes that "send" somehow glues
the bytes together.

DS


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:20 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0