asyncore/asynchat

F.G.Testa testa at allos.sytes.net
Mon Nov 17 08:32:16 EST 2003


But how do you keep it updated since we don't receive any notifications of
closing/removing channels from asyncore/asynchat?
I've found this: asyncore.socket_map (asyncore.py:62). It is a map of your
inherited asynchat class and I'm using it to search for a specific channel
and send data to it, but having my own dictionary would be more elegant, I
think.

"Jeremy Fincher" <tweedgeezer at hotmail.com> wrote in message
news:698f09f8.0311141355.2430c07b at posting.google.com...
> "F.G.Testa" <testa at allos.sytes.net> wrote in message
news:<mailman.745.1068839049.702.python-list at python.org>...
> > How do I access the underlying list/map/array of AcmeChannel?
> > Thank you.
>
> There is none, but feel free to keep one yourself; I've done that, for
> instance, when I want to limit the number of connections to a server
> that should (barring malicious clients) have very fast sessions.
>
> Jeremy
> -- 
> http://mail.python.org/mailman/listinfo/python-list
>








More information about the Python-list mailing list