Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 X-Mailer: Mozilla 4.6 [en] (WinNT; I) X-Accept-Language: de,en MIME-Version: 1.0 To: Erik Hensema CC: "'Zhang, John'" , cygwin AT sourceware DOT cygnus DOT com Subject: Re: Winsock call to UNIX References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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