示例#1
0
文件: beta.py 项目: iamjagman/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()
示例#2
0
文件: beta.py 项目: 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()
示例#3
0
 def error(self, message):
     self.transport.write(make_error_packet(message))
     self.transport.loseConnection()