Esempio 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()
Esempio n. 2
0
File: beta.py Progetto: 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()
Esempio n. 3
0
 def error(self, message):
     self.transport.write(make_error_packet(message))
     self.transport.loseConnection()