def feed(self, data):
    '\n        Handler for incoming data. (Called by TelnetServer.)\n        '
    assert isinstance(data, binary_type)
    self.parser.feed(data)
    self.cli._redraw()
    if self.cli.is_returning:
        try:
            return_value = self.cli.return_value()
        except (EOFError, KeyboardInterrupt) as e:
            logger.info('%s, closing connection.', type(e).__name__)
            self.close()
            return
        self._handle_command(return_value)
Handler for incoming data. (Called by TelnetServer.)
def feed(self, data):
    '\n        \n        '
    assert isinstance(data, binary_type)
    self.parser.feed(data)
    self.cli._redraw()
    if self.cli.is_returning:
        try:
            return_value = self.cli.return_value()
        except (EOFError, KeyboardInterrupt) as e:
            logger.info('%s, closing connection.', type(e).__name__)
            self.close()
            return
        self._handle_command(return_value)