how do I listen on a socket without sucking up all the CPU time?
Fredrik Lundh
effbot at telia.com
Tue Oct 3 15:19:32 EDT 2000
Joshua Muskovitz <josh at open.com> wrote:
> > This sounds like a job for the asyncore module.
>
> Very cool, but I'm running 1.5.2. :-(
and?
Python 1.5.2 (#0, May 9 2000, 14:04:03) [MSC 32 bit (Intel)] on win32
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import asyncore
>>> dir(asyncore)
['EALREADY', 'ECONNRESET', 'EINPROGRESS', 'ENOTCONN', 'EWOULDBLOCK',
'__builtins__', '__doc__', '__file__', '__name__', 'close_all', 'compact_traceback',
'dispatcher', 'dispatcher_with_send', 'loop', 'os', 'poll', 'poll2', 'select', 'socket',
'socket_map', 'string', 'sys']
>>>
</F>
More information about the Python-list
mailing list