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))
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
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()
def __init__(self,ip_address,port,aes,rsa): Connection.__init__(self,ip_address,port) self.aes=aes self.rsa=rsa
def __init__(self, ip_address, port, key): Connection.__init__(self, ip_address, port) self.key = key self.aes = AESCipher(key)
def __init__(self, connectionName): Connection.__init__(self, connectionName)
def __init__(self, obj, system, components): Connection.__init__(self, obj, system, components)
def __init__(self, source, dest): """ Create a connection between wireless devices. """ Connection.__init__(self, source, dest)