From: Fergal Moran
>>> In C (and maybe VB) you can make the * 256 much faster by bit shifting
>>> (l <<= 8).
>> Or you could use htonl() and htons() which convert longs and shorts from
>> little to big endian

>FWIW, htonl() and htons() are not directly available via VB.  They would
>have to be picked up from the appropriate winsock DLL.  Depending upon
Abolutely correct - but they are available from C which is why I appended
my comments after the paragraph beginning with "In C (and maybe VB..."

>Also, there are some third party replacements for WinSock for ATM and
>other specialty networks.  In at least one of those cases, the 'n' is
>also little endian, so hton basically does nothing (no endian swap).
Now that I didn't know. Thanks for the tip!



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to