Add callbacks for connection in TLS connection.

This commit is contained in:
Tony Young 2014-02-14 01:30:14 +13:00
parent 06dab44dc2
commit 9bcb9f2765
1 changed files with 3 additions and 0 deletions

View File

@ -49,6 +49,9 @@ class TLSSupport(rfc1459.RFC1459Support):
# Connect.
self.connection.connect()
# Add handlers.
self.connection.on('read', self.on_data)
self.connection.on('error', self.on_data_error)
def _register(self):
# Send STARTTLS if we're not on TLS already.