This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Winsock call to UNIX
- To: Erik Hensema <erik dot hensema at group2000 dot nl>
- Subject: Re: Winsock call to UNIX
- From: Corinna Vinschen <corinna at vinschen dot de>
- Date: Fri, 01 Oct 1999 11:32:15 +0200
- CC: "'Zhang, John'" <John dot Zhang at neonsoft dot com>, cygwin at sourceware dot cygnus dot com
- References: <A01E735D4940D311A3850090275559330BA96C@NTSRV02>
Erik Hensema wrote:
> [...]
> You should use the htons() and htonl() functions on win32 in order to
> correct the little/big endian problem.
Paranoid correction:
Use htons/htonl and ntohs/ntohl not only on win32 but on
_each_ system! If you ignore it only because you know, that
the endian problem doesn't exist on your system (by chance),
you'll never get portable code.
Regards,
Corinna
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com