class_docstr: Class that represents one Telnet connection.
docstr: Send text to the client.
docstr_tok: ["Send","text","to","the","client","."]
code: def send(self, data):
      """
      Send text to the client.
      """
      assert isinstance(data, text_type)
  
      # When data is send back to the client, we should replace the line
      # endings. (We didn't allocate a real pseudo terminal, and the telnet
      # connection is raw, so we are responsible for inserting \r.)
      self.stdout.write(data.replace("\n", "\r\n"))
      self.stdout.flush()
  
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 6 for calling the TelnetConnection obj's underlying member method code with example usage: obj.send(data) without return types