Wilfried, thank you for the help,
the Function worked just perfect !
On Feb 1, 2008 11:33 AM, Wilfried Mestdagh <[EMAIL PROTECTED]> wrote:
> Hello wayne,
>
> Code is ok. And for the network byte order, it is in big endian format.
> here a function to convert the endianess of an integer:
>
> func
Hello wayne,
Code is ok. And for the network byte order, it is in big endian format.
here a function to convert the endianess of an integer:
function Swap4(n: integer): integer;
asm
bswap eax
end;
So you do something like this:
var
len, size: Integer;
begin
len := 4;
size := Swap4(I
I have no joy yet, maybe you can assist a bit more,
On the receiving side I have this in java:
~~
int ch1 = iStrm.read(); //read first byte
int ch2 = iStrm.read(); //read second byte
int ch3 = iStrm.read(); //read third
Hello wayne,
Send(TheNumber, 4);
It will send in little endian format (as Intel CPU store it).
---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz
Thursday, January 31, 2008, 15:24, wayne forrest wrote:
> I am busy converting an Indy Application
I am busy converting an Indy Application to ICS,
I have a Fucntion in Indy that is : WriteInteger(anInt, true); // where true
= network byte Order
How can I achieve this in ICS ?
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailm