def error(self, message): """ Error out. This method sends ``message`` to the client as a descriptive error message, then closes the connection. """ self.transport.write(make_error_packet(message)) self.transport.loseConnection()
def error(self, message): self.transport.write(make_error_packet(message)) self.transport.loseConnection()