24 May 2012 03:43
Re: Add a generic async IO poller/reactor to select module
2012/5/24 Giampaolo Rodolà <g.rodola@...>: > The handler is supposed to provide 3 methods: > - handle_read_event > - handle_write_event > - handle_error_event Further note: this is the approach I used in pyftpdlib. An even more abstracted approach would be having poller.poll() return a dict of {fd: events, fd, events, ...}, similarly to what Tornado currently does. This way we wouldn't be forcing the user to provide a handler class with the 3 methods described above. --- Giampaolo http://code.google.com/p/pyftpdlib/ http://code.google.com/p/psutil/ http://code.google.com/p/pysendfile/
RSS Feed