You can not control the packets sent over the network, think in terms of
streams. So, this is a typical boundary problem of sockets. There are 3
solutions to this problem:
1) Use packets of fixed size
2) Include the (variable) size in each packet
3) Use a delimiter to separate packets
With any of those approaches the receiver will know to separate the messages
from the stream.
Details and samples are provided in the following book:
C# Network Programming
http://www.amazon.com/exec/obidos/tg...40812?v=glance
--
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com
"mak" <mo********@hotmail.com> escribió en el mensaje
news:11**********************@g47g2000cwa.googlegr oups.com...
Dear Friends,
I'm working on real time stock quotes display. Using Async tcp sockets
in .net csharp. Client software running perfect on LAN and ISDN but not
good on ip dialup. After lot of testing i found the result is, I'm
sending packet by packet data to client socket but client receiving
stream read all packets at once.
Can i reduce the tcp window size in .net or any method i can use to
bound client get packet by packet data.
Please reply, its urgent I really appreciate.
Thanks,
-mak