From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Roderick Groesbeek" To: "Keith Seitz" Cc: Subject: Re: 1.3.2: Cygwin && UDP && O_NONBLOCK Date: Tue, 14 Aug 2001 13:09:00 -0000 Message-id: <020e01c124fd$ce2a9eb0$93b849d5@uu.net> References: X-SW-Source: 2001-08/msg00640.html Content-type: multipart/mixed; boundary="----------=_1583532735-65107-148" This is a multi-part message in MIME format... ------------=_1583532735-65107-148 Content-length: 1652 From: "Keith Seitz" To: "Roderick Groesbeek" Cc: Sent: Tuesday, August 14, 2001 6:33 PM Subject: Re: 1.3.2: Cygwin && UDP && O_NONBLOCK > Why not just #include ? Thnx. One to remember.. Just like "#!/usr/bin/env perl" (Why doesn't everybody uses that!) > > Ok keith. Thnx for your reply, it really helped. I don't have an excuse for my slappy code.... After struggling, finding out how to use DLLTOOL, and coming to the conclusion that O_NONBLOCK code is buggy in Cygwin. I finally motivated myself to build some UDP server & client test code. (Borrowed some code from an old C++ project of mine..) And that even failed, by my own human error. Anyway.. no excuse. I'm pretty good, mind you :-) Anyway, I have extrapolated your sources (based on mine) to the following. Would you pls take a look at the server.c code? It should, when in O_NONBLOCK mode, do some bussy waiting, just like an awful Kernel Scheduler. But it just isn't... And that is the problem I also have in my Library I wanna port to CYGWIN. I will include the sources in a .tgz. (Mailinglist will allow attachments?) Hope you have some spare time to look at it. Thnx in advance. Vriendelijke Groet, Note: For efficiënt work-behaviour, I'm currently only reading my E-mail twice a day! Roderick -- Pettemerstraat 12A T r I p l e 1823 CW Alkmaar T Tel. +31 (0)72-5129516 fax. +31 (0)72-5129520 Automatisering www.triple-it.nl "Laat uw Net Werken!" ------------=_1583532735-65107-148 Content-Type: application/x-gzip; charset=binary; name="blocktest.tgz" Content-Disposition: inline; filename="blocktest.tgz" Content-Transfer-Encoding: base64 Content-Length: 2282 H4sIAE2GeTsAA+0Ya2/aSDBf8a8YpUnORgkxEIJEHroUSModBSmQq6q2QsZe wCp4kb2kSU/tb7+Z3TVgGpJcm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