 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Cem Guest
|
Posted: Sat Sep 27, 2003 4:48 am Post subject: Sockets |
|
|
I have a problem with sockets. When I try to send a message from server to
client, there is no problem. When I try to send messages without any delay
between messages, clint reads messages as if they are connected. How can I
solve this problem ? Thanks...
-----------------------------------------------------
This message was posted using http://www.gdse.com/
|
|
| Back to top |
|
 |
Martin James Guest
|
Posted: Sun Sep 28, 2003 10:47 am Post subject: Re: Sockets |
|
|
"Cem" <cdilbaz1 (AT) hotmail (DOT) com> wrote
| Quote: | I have a problem with sockets. When I try to send a message from server to
client, there is no problem. When I try to send messages without any delay
between messages, clint reads messages as if they are connected. How can I
solve this problem ? Thanks...
|
You are using TCP? This protocol is a streaming service. It transfers
octet/byte streams & knows nothing about datagrams. If you send two
128-byte messages, they could be received as one 256-byte chunk or 256
one-byte chunks. Your protocol must be able to handle both these
possibilities if your comms it to be reliable.
Rgds,
Martin
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|