Esempio n. 1
0
	def __init__(self,ip_address,port,aes,rsa_path):
		Connection.__init__(self,ip_address,port)
		self.aes=aes
		try:
			self.rsa = RSA.load_pub_key(rsa_path)
		except Exception as er:
			raise SChatError('Can\'t load the public key of the server - '+str(er))
Esempio n. 2
0
 def __init__(self,
              host=HOST,
              port=PORT,
              buffer_size=BUFFER_SIZE,
              encoding=ENCODING):
     Connection.__init__(self, host, port, buffer_size, encoding)
     self.data = None
     self.name = None
Esempio n. 3
0
    def __init__(self,
                 host=HOST,
                 port=PORT,
                 buffer_size=BUFFER_SIZE,
                 encoding=ENCODING):
        Connection.__init__(self, host, port, buffer_size, encoding)
        self.sock.bind(self.addr)
        self.sock.listen()

        self.clients = []
        self.num_clients = -1  # Para indexar a lista de clientes corretamente, se inicia com -1
        self.data = Data()
Esempio n. 4
0
	def __init__(self,ip_address,port,aes,rsa):
		Connection.__init__(self,ip_address,port)
		self.aes=aes
		self.rsa=rsa
Esempio n. 5
0
 def __init__(self, ip_address, port, key):
     Connection.__init__(self, ip_address, port)
     self.key = key
     self.aes = AESCipher(key)
Esempio n. 6
0
 def __init__(self, connectionName):
     Connection.__init__(self, connectionName)
Esempio n. 7
0
 def __init__(self, obj, system, components):
     Connection.__init__(self, obj, system, components)
Esempio n. 8
0
 def __init__(self, source, dest):
     """
     Create a connection between wireless devices.
     """
     Connection.__init__(self, source, dest)
 def __init__(self, source, dest):
     """
     Create a connection between wireless devices.
     """
     Connection.__init__(self, source, dest)