Louis Young wrote:
> Hi guys
>
> I've found some more weird stuff going on with indy 10.
>
> Have a look at the following line of code:
>
> iMessageLen := AThread.Connection.IOHandler.ReadSmallInt(False);
>
> Can anyone tell me why iMessageLen is equal to 107 when the input is
> 'k'#0, but 0 when the input is #0'k'?
>
> They should be the same, not true?
You shall call ReadSmallInt as following - ReadSmallInt(True) - to
convert from network byte order to host byte order.
PS: RTF RFC
--
Illya Kysil, team lead/senior software developer
Java/C#/Delphi/C/C++/Forth/Assembler
-------------------------------------------------------------------------
Shakespeare / King Henry IV
GLENDOWER I can call spirits from the vasty deep.
HOTSPUR Why, so can I, or so can any man;
But will they come when you do call for them?
[Non-text portions of this message have been removed]
-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/delphi-en/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/