110 httpdata = '' |
110 httpdata = '' |
111 writebuffer = '' |
111 writebuffer = '' |
112 address = None |
112 address = None |
113 |
113 |
114 def __init__ (self, conn, address): |
114 def __init__ (self, conn, address): |
115 asyncore.dispatcher.__init__ (self, conn) |
115 asyncore.dispatcher.__init__ (self, conn, address) |
116 self.socket = ssl.wrap_socket (conn, server_side=True, keyfile='key.pem', |
116 self.socket = ssl.wrap_socket (conn, server_side=True, keyfile='key.pem', |
117 certfile='cert.pem', do_handshake_on_connect=False) |
117 certfile='cert.pem', do_handshake_on_connect=False) |
118 self.socket.setblocking (0) |
118 self.socket.setblocking (0) |
119 self.address = address |
119 self.address = address |
120 print 'Initialized connection handler for %s' % type (address) |
120 print 'Initialized connection handler for %s' % type (address) |