示例#1
0
    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)
示例#2
0
 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)
示例#3
0
 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)
示例#4
0
 def handle_read(self):
     if self.tlsDone:
         HTTPRequestHandler.handle_read(self)
     else:
         TLSHandshake.handle_read(self)
示例#5
0
 def readable(self):
     if self.tlsDone:
         return HTTPRequestHandler.readable(self)
     else:
         return TLSHandshake.readable(self)
示例#6
0
 def handle_close(self):
     if self.tlsDone:
         HTTPRequestHandler.close(self)
     else:
         TLSHandshake.close(self)
示例#7
0
 def handle_connect(self):
     TLSHandshake.handle_connect(self)
示例#8
0
 def handle_close(self):
     if self.tlsDone:
         HTTPClient.close(self)
     else:
         TLSHandshake.close(self)
示例#9
0
 def writable(self):
     if self.tlsDone:
         return HTTPRequestHandler.writable(self)
     else:
         return TLSHandshake.writable(self)
示例#10
0
 def handle_close(self):
     if self.tlsDone:
         HTTPRequestHandler.close(self)
     else:
         TLSHandshake.close(self)
示例#11
0
 def readable(self):
     if self.tlsDone:
         return HTTPClient.readable(self)
     else:
         return TLSHandshake.readable(self)
示例#12
0
 def handle_close(self):
     if self.tlsDone:
         HTTPClient.close(self)
     else:
         TLSHandshake.close(self)
示例#13
0
 def handle_write(self):
     if self.tlsDone:
         HTTPClient.handle_write(self)
     else:
         TLSHandshake.handle_write(self)
示例#14
0
 def writable(self):
     if self.tlsDone:
         return HTTPClient.writable(self)
     else:
         return TLSHandshake.writable(self)
示例#15
0
 def readable(self):
     if self.tlsDone:
         return HTTPClient.readable(self)
     else:
         return TLSHandshake.readable(self)
示例#16
0
    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)
示例#17
0
 def handle_connect(self):
     TLSHandshake.handle_connect(self)
示例#18
0
 def writable(self):
     if self.tlsDone:
         return HTTPClient.writable(self)
     else:
         return TLSHandshake.writable(self)
示例#19
0
 def readable(self):
     if self.tlsDone:
         return HTTPRequestHandler.readable(self)
     else:
         return TLSHandshake.readable(self)
示例#20
0
 def handle_write(self):
     if self.tlsDone:
         HTTPClient.handle_write(self)
     else:
         TLSHandshake.handle_write(self)
示例#21
0
 def handle_write(self):
     if self.tlsDone:
         HTTPRequestHandler.handle_write(self)
     else:
         TLSHandshake.handle_write(self)
示例#22
0
 def writable(self):
     if self.tlsDone:
         return HTTPRequestHandler.writable(self)
     else:
         return TLSHandshake.writable(self)