Exemplo n.º 1
0
    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()
Exemplo n.º 2
0
Arquivo: beta.py Projeto: dequis/bravo
    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()
Exemplo n.º 3
0
 def error(self, message):
     self.transport.write(make_error_packet(message))
     self.transport.loseConnection()