This is the mail archive of the 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]

Re: 1.3.2: Cygwin && UDP && O_NONBLOCK

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 <netinet/in.h>?

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
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!

Pettemerstraat 12A                                  T r I p l e
1823 CW Alkmaar                                         T
Tel. +31 (0)72-5129516
fax. +31 (0)72-5129520                              Automatisering                                 "Laat uw Net Werken!"


Unsubscribe info:
Bug reporting:

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