Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <020e01c124fd$ce2a9eb0$93b849d5@uu.net> From: "Roderick Groesbeek" To: "Keith Seitz" Cc: References: Subject: Re: 1.3.2: Cygwin && UDP && O_NONBLOCK Date: Tue, 14 Aug 2001 22:15:04 +0200 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_020B_01C1250E.9183FA40" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 ------=_NextPart_000_020B_01C1250E.9183FA40 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit 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!" ------=_NextPart_000_020B_01C1250E.9183FA40 Content-Type: application/x-compressed; name="blocktest.tgz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="blocktest.tgz" H4sIAE2GeTsAA+0Ya2/aSDBf8a8YpUnORgkxEIJEHroUSModBSmQq6q2QsZewCp4kb2kSU/tb7+Z 3TVgGpJcmkYnnUcN3p2d987O7rQ/5u5nwSJR2N/4VWDbB3a5VMKvbZcPD+ibx39yrmHDLheLh0W7 kC/hOF8qFYsbUPplFi3BLBJOCLBx5k38wI9E6Age3kGXWI9ewrIXgf5i/92xzwKRc59dB+324cHB uv0vlO1SvP/5crGM9OV82d4A+9ktuQP+5/v/yg/c8cxjcBwJz+e50amRQI39PuESyNAPhquEhItW KW+j/QjTi4kVasSL2ymLkuiACR//9v1gRc6M4u4liQduIMYrdMjsKWsROfDYAHq96vuLd41Wr2eQ QkLNgsgfBswDPxBA1o1Z0BNHxisWeP7AMK6578EscobMJAonHLq74I6cMEvj6w+fLONvA2CKDouB uXlFlBXYjuB4xCNxCsdTHorTj8HmrqK3P1lHS/T1G2cyHSsOPHrOmLgAj0OhtMLzzTDIgLfOZ3bl TTsyjiYZAlniCZwJU4ZBllTuAm7CzFU+OZ4X9vwAsoKTuZl4jRjxjKOE6VGGAJdICQkIZhOFm2NJ 0tEcM5rCCQyZIBn9W1JvxnZYC2EDMInwBFpXzaYVM2fQhgwGgYUhD83NFpeWgODg8iBgLg03SYok Yze+MPNKKCIwEBnou3x6a2r/rdF073TUIy93IcbtCL53GvmBRisS3NyhGFlHgCLi9YEz8ce36MzZ ea/RqnfnxkeR6wQDU0Vzc9vD7djRkVl4GEuhBZQxEjyIzAQVScLI4aJKflPr2YVOu/pnr3ZxefZ2 F2xJrEMm6Y8Rl0lGLA7YVeD0x0zGK2SOYFryPGTLEZuHLGRiFgaJXUS8TKqJ4wcr6Q1Zld5xsrNA 5zomL1GiNMpjSdqfDT7k7cLBJ8L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Uhc68HIZ/kcrk4swhUisSLsNxMUhVZ10XCzpI+bGHRlhWt6Otcqmovschue7LM 4XxOnUg7WUrjUKnvUB8LzxEOSGnLh93lAa7OmCyYSuB+FmociSZMjIhR5qsYMSkhB3V3xOn5Cdn9 RAhUM50IAC480v9l9x9yiBTFDq11Yh7DDvUG2x70b/FdJf/PRrULDmJv4mAmavfqgVhOpOU+P31/ p5BCCimkkEIKKaSQQgoppPBE+AcfDhy5ACgAAA== ------=_NextPart_000_020B_01C1250E.9183FA40 Content-Type: text/plain; charset=us-ascii -- 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/ ------=_NextPart_000_020B_01C1250E.9183FA40--