From: Nobuyoshi Nakada Date: 2002-09-12T16:06:32+09:00 Subject: Re: UDPSocket bug? Hi, At Thu, 12 Sep 2002 04:33:54 +0900, Paul Brannan wrote: > > > [BUG] rb_sys_fail() - errno == 0 > > > > Hmm, I wonder if Winsock isn't setting errno properly. If that's the > > case, then rb_sys_fail() won't be sufficient for socket.c. > > According to http://www.sockets.com/a_c2.htm (and a few other sources), > meaningful winsock error information cannot be obtained from errno; > WSAGetLastError() should be used instead. In this situation, > rb_sys_fail won't work. errno should be set in win32/win32.c:rb_w32_recvfrom(). -- Nobu Nakada