Am 05.06.2012 08:02, schrieb Reinier Olislagers:
Also, I'm sure there must be functions to convert endianness - at least
network byte order (big endian) to host order.
I found e.g. Synapse synsock:
   function ntohs(netshort: word): word;
   function ntohl(netlong: longword): longword;
   function htons(hostshort: word): word;
   function htonl(hostlong: longword): longword;

Are there an equivalent RTL/FCL functions?

They are in FPC's sockets unit.

Regards,
Sven
_______________________________________________
fpc-pascal maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to