def dataReceived(self, data): """This method is always executed when a new message is received by the agent, whether the agent is in client or server mode. :param line: message received by the agent. """ PeerProtocol.dataReceived(self, data)
def dataReceived(self, data): """This method is always executed when a new data is received by the agent, whether the agent is in client or server mode. Parameters ---------- data : bytes some data received by the agent. """ PeerProtocol.dataReceived(self, data)