class_docstr: Class that represents one Telnet connection.
docstr: Handler for incoming data. (Called by TelnetServer.)
docstr_tok: ["Handler","for","incoming","data",".","(","Called","by","TelnetServer",".",")"]
code: def feed(self, data):
      """
      Handler for incoming data. (Called by TelnetServer.)
      """
      assert isinstance(data, binary_type)
  
      self.parser.feed(data)
  
      # Render again.
      self.cli._redraw()
  
      # When a return value has been set (enter was pressed), handle command.
      if self.cli.is_returning:
          try:
              return_value = self.cli.return_value()
          except (EOFError, KeyboardInterrupt) as e:
              # Control-D or Control-C was pressed.
              logger.info("%s, closing connection.", type(e).__name__)
              self.close()
              return
  
          # Handle CLI command
          self._handle_command(return_value)
  
imports: from __future__ import unicode_literals
  import socket
  import select
  import threading
  import os
  import fcntl
  from six import int2byte, text_type, binary_type
  from codecs import getincrementaldecoder
  from prompt_toolkit.enums import DEFAULT_BUFFER
  from prompt_toolkit.eventloop.base import EventLoop
  from prompt_toolkit.interface import CommandLineInterface, Application
  from prompt_toolkit.layout.screen import Size
  from prompt_toolkit.shortcuts import create_prompt_application
  from prompt_toolkit.terminal.vt100_input import InputStream
  from prompt_toolkit.terminal.vt100_output import Vt100_Output
  from .log import logger
  from .protocol import IAC, DO, LINEMODE, SB, MODE, SE, WILL, ECHO, NAWS, SUPPRESS_GO_AHEAD
  from .protocol import TelnetProtocolParser
  from .application import TelnetApplication
label_desc: Use image node_id 3 for calling the TelnetConnection obj's underlying member method code with example usage: obj.feed(data) without return types