delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/11/13/23:14:56

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
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Wed, 13 Nov 2002 23:14:56 -0500
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Cc: mcnelson AT mindspring DOT com
Subject: Re: recvfrom bug
Message-ID: <20021114041456.GE6923@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com, mcnelson AT mindspring DOT com
References: <002001c28b93$f5bb6e70$0164a8c0 AT PROJECTTECHNOLOGY1>
Mime-Version: 1.0
In-Reply-To: <002001c28b93$f5bb6e70$0164a8c0@PROJECTTECHNOLOGY1>
User-Agent: Mutt/1.5.1i

On Wed, Nov 13, 2002 at 11:11:50PM -0500, Dr. M. C. Nelson wrote:
>
>Dear mailing list:
>
>The following code works well on a Linux platform,
>
>  int sockfd;
>  char buf[1024];
>  struct sockaddr fromaddr;
>  int fromlen;

I assume that this is just a code snippet and sockfd is actually
set to something sane.

> if ( (retv = recvfrom( sockfd, buf, sizeof(buf), 0, &fromaddr,&fromlen )) < 0 )
>    {
>      perror( "udpclient: recvfrom" );
>    }
>
>However, in cygwin the following error message is produced:
>
>      udpclient: recvfrom: Bad address
>
>Can anyone tell me how to get pas this problem?
>
>Pleas reply, to mailto:mcnelson AT mindspring DOT com I am not a subscriber.

Are you sure you're running the latest version of cygwin?  A problem
related to this was fixed several releases ago.

http://cygwin.com/bugs.html might prove interesting reading.  You've
provided all of the details needed except the cygcheck output mentioned
on that page.

cgf

--
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/

- Raw text -


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