> In the recvstream method, it is using the recvinteger method, but the
> sendstream method is not using the sendinteger method. I could not get
> my code to work until I did this in the sendstream method:
sendinteger is not needed, because size is encoded into begin of send
buffer... see:
SendString(CodeLongInt(l) + s);
It is TCP speed optimalization. ;-) If it does not work for you then
error can be with bad byte order. See the "if Indy then" condition on
the begin of InternalSendStream method.
--
Lukas Gebauer.
http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib.
http://geoget.ararat.cz/ - Geocaching solution
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public