RE: Socket.send - missed data problem!

From: Carlos Fernandez (CarlosFernandez_at_discussions.microsoft.com)
Date: 10/27/04


Date: Wed, 27 Oct 2004 06:29:01 -0700

Tomer,

Most likely either you are not sending all the data you think you are or the
reception part is broken.

TCP guarantees that there is no data loss unless the connection is broken
for some reason, i.e. it's just impossible that some records in the middle of
a transmission get lost. In something goes wrong, you lose from one point to
the end.

"Tomer" wrote:

> Hi,
>
> I'm sending data with the socket.send method using a gprs modem.
> I've a loop of about 100 records to send and it is transmitted to the server
> with no problem.
> I've also a loop of about 1000 records and when I send the data some lines
> in the output get missed in the server.
>
> I've putted delays between the sends (100ms), it helped but not entirely.
> Plus it slows the send procedure.
>
> I've also tried sending a few records at a time (using a delimiter) but more
> lines were missed this way.
> each line contains 14 characters plus CRLF.
>
> Any suggetions?
>
> Tomer.
>
>
>



Relevant Pages

  • RE: Socket.send - missed data problem!
    ... > I'm sending data with the socket.send method using a gprs modem. ... > I've a loop of about 100 records to send and it is transmitted to the server ... > in the output get missed in the server. ... > each line contains 14 characters plus CRLF. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Socket.send - missed data problem!
    ... I'm sending data with the socket.send method using a gprs modem. ... I've a loop of about 100 records to send and it is transmitted to the server ... each line contains 14 characters plus CRLF. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Threading and returning values
    ... The e.Result is not coming out of the loop. ... I have now got my SMTP server apparently running correctly now, ... BackgroundWorker bw = new BackgroundWorker; ... // Note that in the Click event handler, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Brian Kernighan, maybe Im not worthy, maybe Im scum
    ... If you think I'm giving a verbose pseud write access to my server, ... interface appears in C Sharp as consisting of sbyte arrays. ... failed to see that a for loop is not just a while loop because a while ... chilling effect on freedom of speech. ...
    (comp.programming)
  • Re: multiple tcp server and client execution with close problem
    ... Ignore the loop for accept. ... for acceptafter settting socket to blocking mode. ... Client side: ... execute main to run server 3 times: ...
    (comp.unix.programmer)