www.delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Date: | Thu, 6 Dec 2001 12:43:38 +0100 |
From: | Corinna Vinschen <cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: AF_INET connection refused help pls |
Message-ID: | <20011206124338.D740@cygbert.vinschen.de> |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <Pine DOT SOL DOT 4 DOT 33 DOT 0112060615220 DOT 15529-100000 AT azure DOT engin DOT umich DOT edu> |
Mime-Version: | 1.0 |
User-Agent: | Mutt/1.2.5i |
In-Reply-To: | <Pine.SOL.4.33.0112060615220.15529-100000@azure.engin.umich.edu>; from haksunli@engin.umich.edu on Thu, Dec 06, 2001 at 06:16:02AM -0500 |
On Thu, Dec 06, 2001 at 06:16:02AM -0500, Haksun Li wrote: > I am having problem writing a little program using cygwin. It is about a > client sending message to a server. User error. > Server: > [...] > server_addr.sin_family = hp->h_addrtype; > bcopy((char*)hp->h_addr, (char*)&server_addr.sin_addr, hp->h_length); > server_addr.sin_port = port; That should read: server_addr.sin_port = htons(port); It works coincidentally on Solaris because host and network byteorder are the same on Solaris. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |