Winsock call to UNIX

Corinna Vinschen corinna@vinschen.de
Fri Oct 1 02:34:00 GMT 1999


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



More information about the Cygwin mailing list