Integrating SimpleHTTPServer into asyncore
Panu A Kalliokoski
pkalliok at cc.helsinki.fi
Wed Jul 11 16:01:35 EDT 2001
Ng Pheng Siong <ngps at madcap.dyndns.org> wrote:
> I suppose you are interested in adding and removing "servers" while the
> application is in asyncore's loop. One way is for your app to first start a
> _controller_ "server" with which you communicate, also over sockets, for
> this purpose. You'll need to design the controller's protocol (candidate:
> XML-RPC request/response) and also implement a client.
For the record (and some free advertisement), the process of adding and
removing accept channels is somewhat simpler in my SelectManager module
(http://sange.fi/~atehwa-u/selecting/) than in asyncore. But the
difference is not a big one.
Panu
More information about the Python-list
mailing list