def __init__(self, host, path): if not hasattr(self, '_map'): asyncore.dispatcher.__init__(self) self.tlsDone = False # TLSHandshake.__init__(self, address=(host, 443), certfile='/home/shurdeek/src/PyBitmessage/sslsrc/keys/cert.pem', keyfile='/home/shurdeek/src/PyBitmessage/src/sslkeys/key.pem', server_side=False, ciphers='AECDH-AES256-SHA') HTTPClient.__init__(self, host, path, connect=False) TLSHandshake.__init__(self, address=(host, 443), server_side=False)
def __init__(self, sock): if not hasattr(self, '_map'): asyncore.dispatcher.__init__(self, sock) # pylint: disable=non-parent-init-called # self.tlsDone = False TLSHandshake.__init__( self, sock=sock, certfile='/home/shurdeek/src/PyBitmessage/src/sslkeys/cert.pem', keyfile='/home/shurdeek/src/PyBitmessage/src/sslkeys/key.pem', server_side=True) HTTPRequestHandler.__init__(self, sock)
def handle_read(self): if self.tlsDone: HTTPRequestHandler.handle_read(self) else: TLSHandshake.handle_read(self)
def readable(self): if self.tlsDone: return HTTPRequestHandler.readable(self) else: return TLSHandshake.readable(self)
def handle_close(self): if self.tlsDone: HTTPRequestHandler.close(self) else: TLSHandshake.close(self)
def handle_connect(self): TLSHandshake.handle_connect(self)
def handle_close(self): if self.tlsDone: HTTPClient.close(self) else: TLSHandshake.close(self)
def writable(self): if self.tlsDone: return HTTPRequestHandler.writable(self) else: return TLSHandshake.writable(self)
def readable(self): if self.tlsDone: return HTTPClient.readable(self) else: return TLSHandshake.readable(self)
def handle_write(self): if self.tlsDone: HTTPClient.handle_write(self) else: TLSHandshake.handle_write(self)
def writable(self): if self.tlsDone: return HTTPClient.writable(self) else: return TLSHandshake.writable(self)
def __init__(self, sock): if not hasattr(self, '_map'): asyncore.dispatcher.__init__(self, sock) # self.tlsDone = False TLSHandshake.__init__(self, sock=sock, certfile='/home/shurdeek/src/PyBitmessage/src/sslkeys/cert.pem', keyfile='/home/shurdeek/src/PyBitmessage/src/sslkeys/key.pem', server_side=True) HTTPRequestHandler.__init__(self, sock)
def handle_write(self): if self.tlsDone: HTTPRequestHandler.handle_write(self) else: TLSHandshake.handle_write(self)