delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/10/01/05:37:01

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <37F47F9F.77D1A9E3@vinschen.de>
Date: Fri, 01 Oct 1999 11:32:15 +0200
From: Corinna Vinschen <corinna AT vinschen DOT de>
X-Mailer: Mozilla 4.6 [en] (WinNT; I)
X-Accept-Language: de,en
MIME-Version: 1.0
To: Erik Hensema <erik DOT hensema AT group2000 DOT nl>
CC: "'Zhang, John'" <John DOT Zhang AT neonsoft DOT com>, cygwin AT sourceware DOT cygnus DOT com
Subject: Re: Winsock call to UNIX
References: <A01E735D4940D311A3850090275559330BA96C AT 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 AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019