Networking Forums

Networking Forums > Computer Networking > Linux Networking > Can any one help me!! (Socket Programming)

Reply
Thread Tools Display Modes

Can any one help me!! (Socket Programming)

 
 
girishdomain@gmail.com
Guest
Posts: n/a

 
      05-18-2005, 05:01 AM
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
 
 
 
 
Bob Hauck
Guest
Posts: n/a

 
      05-18-2005, 06:59 PM
On 17 May 2005 22:01:20 -0700, (E-Mail Removed)
<(E-Mail Removed)> 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
 
girishdomain@gmail.com
Guest
Posts: n/a

 
      05-19-2005, 05:54 AM
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
 
gg-csf@dmztest.vsr.ambisys.net
Guest
Posts: n/a

 
      05-19-2005, 05:58 AM
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
 
girishdomain@gmail.com
Guest
Posts: n/a

 
      05-19-2005, 06:20 AM
i working on linux 2.4
connection was reset sometimes ajust before last packet and sometimes
after receiving 12-13 packets

 
Reply With Quote
 
girishdomain@gmail.com
Guest
Posts: n/a

 
      05-19-2005, 07:01 AM
sometimes just before last packet and sometime after receiving 12-13
packets
i am working on linux 2.4

 
Reply With Quote
 
gg-csf@dmztest.vsr.ambisys.net
Guest
Posts: n/a

 
      05-20-2005, 12:34 AM
Hi!

(E-Mail Removed) 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
 
girishdomain@gmail.com
Guest
Posts: n/a

 
      05-24-2005, 10:26 AM
I am using TCP stream mode with no flags

 
Reply With Quote
 
David Schwartz
Guest
Posts: n/a

 
      05-25-2005, 04:17 PM

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed) 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
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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
socket programming rak.dontmess@gmail.com Linux Networking 4 02-12-2008 11:00 PM
applications possible with help of socket programming addy Windows Networking 0 10-17-2007 10:34 AM
vlan in socket programming sl Linux Networking 0 05-29-2005 08:22 AM
socket programming Andreas Lassmann Linux Networking 4 04-27-2005 06:52 AM
socket programming PH Linux Networking 4 11-16-2003 10:39 PM



1 2 3 4 5 6 7 8 9 10 11