This is the mail archive of the cygwin@cygwin.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]
Other format: [Raw text]

Re: recvfrom bug


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@mindspring.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/


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