'Connect session to sessionhandler.'

def start(self):

    if self.port:
        if self.ssl:
            try:
                from twisted.internet import ssl
                service = reactor.connectSSL(self.network, int(self.port), self, ssl.ClientContextFactory())
            except ImportError:
                logger.log_err('To    use    SSL,    the    PyOpenSSL    module    must    be    installed.')
        else:
            service = internet.TCPClient(self.network, int(self.port), self)
        self.sessionhandler.portal.services.addService(service)
