This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: Help with fixing x2x...
- From: Harold L Hunt II <huntharo at msu dot edu>
- To: cygwin-xfree at cygwin dot com
- Date: Wed, 24 Jul 2002 15:20:39 -0400
- Subject: Re: Help with fixing x2x...
- References: <F53wR1IM9QX2CTp2hFO0000a8c5@hotmail.com>
- Reply-to: cygwin-xfree at cygwin dot com
Thomas Chadwick wrote:
I added a printf statement and sure enough, the return value of select
is -1. I then tried printf'ing the value returned by WSAGetLastError.
To make a long story short, I wound up having to comment out the
includes for <sys/types.h> and <sys/time.h> and include
<w32api/winsock.h> instead to get it to succesfully compile x2x.o; and I
had to add -lwsock32 in the Makefile to get it to successfully link
x2x.exe.
After doing this, select is still non-blocking, returning -1, and the
value returned by WSAGetLastError() is 10038, which seems to correspond
to the #define WSAENOTSOCK in winsock.h.
Any idea what this error code means and what steps I might take to fix it?
Thomas,
Revert those include and Makefile changes. You do not want to use
Winsock, you want to use Cygwin's sockets.
Test the rewritten function that I just sent to the list.
Harold