On 4/8/2010 2:28 AM, Lukas Gebauer wrote:
>> 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,

Just a FYI, I looked at my old version of Synapse and the sendstream 
uses sendinteger not the sendstring.

There does seem to be some issue with the sendstring method vs 
sendinteger not sure if it's OS related or not.

------------------------------------------------------------------------------
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

Reply via email to