Tony,
> I am just telling you it flat out does not work when using
> SendString(CodeLongInt(l) + s); on windows 7 and Delphi 2010
> Could this be related to how windows 7 socket stack works or something
> in Delphi 2009/2010 which is related to the unicode strings?
Hmmm... I haven't looked at this very long (should actually be doing other
things... or at least not burning out on even more work this week), and
don't have compilers (or OS) as recent as you're using, but this is
interesting and strange enough to at least give a peek...
At first I was going to suspect some unicode interaction (though AnsiString
is specified...), as you started to suspect, BUT then I come right back
around to your natural assumptions:
It seems:
SendInteger and RecvInteger are using Little Endian (over the
"wire")
CodeLongInt() is using Network Byte Order / Big Endian (as
any proper
Lilliputian would)
I must be too tired to see straight now... But... How the HECK would that
EVER work?!
(Interestingly, I can't find any of my code that does any stream
sending--through Synapse--other than SendStreamRaw!)
Are you able to strip the problem down to a simple example and inspect
what's going on both on the transmitting and receiving ends (on a known or
pre-determined stream size), and/or perhaps over the wire (sniffing)?
That's enough. My brain hurts almost as much as my back. Time to go get a
Scotch or four.
Have a great weekend!
------------------------------------------------------------------------------
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