Socket.send - missed data problem!

  • Thread starter Thread starter Tomer
  • Start date Start date
T

Tomer

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.
 
What kind socket communication is that? UDP or plain TCP/IP?
A code snipped on the sending and receiving end youre using could help also...
 
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.
 
I'm using TCP/IP, I've used the WinTalk sample that comes with the visual
studio as a base for the communication procedure.
I'm not sure what exactly do you mean by 'kind of socket communication'?
But according to my testing, when I put a delay of about 400ms everything
transfers correctly.
The server application is not a .net app its a VB app. I don't know if that
should make any difference.

Tomer.
 
Well, its can't be the first reason you mentioned, because in each time
different lines are missing.
If its the server fault then there not much that I can do. I can create my
own server application the test that issue.

Tomer.
 
Back
Top