473,396 Members | 2,036 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Re: select.poll() and WSAPoll

On Tue, 6 May 2008 08:36:28 -0400, inhahe <in****@gmail.comwrote:
>select.poll isn't supported on Windows, because Windows doesn't have such a
feature, or at least it didn't until Vista. Vista implements the same thing
but called WSAPoll, an article is here
http://blogs.msdn.com/wndp/archive/2...6/WSAPoll.aspx
I hope that the next edition of Python supports select.poll on Vista, or at
least that someone writes a third-party module fo it. As much as I'd love to
do it myself, it's probably beyond me.. i've never used poll before nor
written a Python extension. also, i don't have Vista.
Thanks
If you use Twisted, then you can use I/O Completion Ports, which are even
better than WSAPoll, and your code will also work with KQueue on BSD or
EPoll on Linux without any changes. :)

Jean-Paul
Jun 27 '08 #1
1 2378
On 6 May, 14:18, Jean-Paul Calderone <exar...@divmod.comwrote:
On Tue, 6 May 2008 08:36:28 -0400, inhahe <inh...@gmail.comwrote:
select.poll isn't supported on Windows, because Windows doesn't have such a
feature, or at least it didn't until Vista. Vista implements the same thing
but called WSAPoll, an article is here
http://blogs.msdn.com/wndp/archive/2...6/WSAPoll.aspx
I hope that the next edition of Python supports select.poll on Vista, or at
least that someone writes a third-party module fo it. As much as I'd love to
do it myself, it's probably beyond me.. i've never used poll before nor
written a Python extension. also, i don't have Vista.
Thanks

If you use Twisted, then you can use I/O Completion Ports, which are even
better than WSAPoll, and your code will also work with KQueue on BSD or
EPoll on Linux without any changes. :)

Jean-Paul
The current docs describe the I/O Completion Ports reactor as
"extremely experimental".

http://twistedmatrix.com/projects/co...tor.html#auto8

Is that overly conservative or is it as bleeding edge as it sounds?

(IIRC there have been caveats like this on the Windows reactors for
a while)

Giles
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Magnus Lycka | last post by:
I'm trying to read standard out in a process started with popen2 in a non-blocking way. (Other good ways of doing this than the one I tried are appreciated.) I've tried to dumb down my code to...
11
by: Michi Henning | last post by:
Hi, I'm using a blocking Select() call on a socket with a timeout value of -1. I'd expect the call to block indefinitely, but it doesn't. When I use Poll() instead, a timeout of -1 works fine...
5
by: JamesHoward | last post by:
I have a problem with python's asyncore module throwing a bad file descriptor error. The code might be difficult to copy here, but the problem is essentially: The server wants to sever the...
0
by: Maxim Veksler | last post by:
Hi, I'm trying to write a non blocking socket port listener based on poll() because select is limited to 1024 fd. Here is the code, it never gets to "I did not block" until I do a telnet...
0
by: Sophie000 | last post by:
I have some questions about select() and poll(). I heard the poll( ... ) call is usually preferred over and more efficient than select( ... ) simply because poll( ... ) only requires that you...
2
by: inhahe | last post by:
select.poll isn't supported on Windows, because Windows doesn't have such a feature, or at least it didn't until Vista. Vista implements the same thing but called WSAPoll, an article is here...
0
by: Jean-Paul Calderone | last post by:
On Tue, 6 May 2008 08:44:36 -0700 (PDT), Giles Brown <giles_brown@hotmail.comwrote: With the most recent release, the IOCP reactor is in much better shape than it ever has been before. It's not...
3
by: shapper | last post by:
Hello, I have two tables: Polls and Options: Poll PollID, Question Options OptionID, PollID, Answer I want to select a Poll given its ID and all Options associated to it. Options should...
1
by: shapper | last post by:
Hello, I have two tables: Polls PollID, Question Options OptionID, Answer Given a OptionID I want to get the poll to which the Option "Belongs": Poll poll = database.Polls.Select(p...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.