This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Winsock call to UNIX


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]