async_chat close socket notification

F.G.Testa testa at allos.sytes.net
Wed Nov 12 17:43:00 CET 2003


Hi folks!

How to receive a notification when a async_client is closed?

class AcmePopupChannel(asynchat.async_chat):
    ....
    def handle_close(self):
        print 'Closed channel'
    def handle_error(self):
        print 'Error in channel'

This seems not work for me.
Thanks!

Testa

Python 2.3.2 (#49, Oct  2 2003, 20:02:00) [MSC v.1200 32 bit (Intel)] on
win32








More information about the Python-list mailing list