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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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/ |
|
|||
|
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 |
|
|||
|
<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 |