class_docstr: Parser for the Telnet protocol.
  Usage::
  
      def data_received(data):
          print(data)
  
      def size_received(rows, columns):
          print(rows, columns)
  
      p = TelnetProtocolParser(data_received, size_received)
      p.feed(binary_data)
class_docstr_tok: ["Parser","for","the","Telnet","protocol",".","Usage",":",":","def","data_received","(","data",")",":","print","(","data",")","def","size_received","(","rows",",","columns",")",":","print","(","rows",",","columns",")","p","=","TelnetProtocolParser","(","data_received",",","size_received",")","p.feed","(","binary_data",")"]
code: def __init__(
      self,
      data_received_callback: Callable[[bytes], None],
      size_received_callback: Callable[[int, int], None],
      ttype_received_callback: Callable[[str], None],
  ) -> None:
      self.data_received_callback = data_received_callback
      self.size_received_callback = size_received_callback
      self.ttype_received_callback = ttype_received_callback
  
      self._parser = self._parse_coroutine()
      self._parser.send(None)
  
file_path: catboost/contrib/python/prompt-toolkit/py3/prompt_toolkit/contrib/telnet/protocol.py
imports: from __future__ import annotations
  import struct
  from typing import Callable, Generator
  from .log import logger
label_desc: Use image node_id 1 to create a new TelnetProtocolParser object  with example: obj = TelnetProtocolParser(data_received_callback, size_received_callback, ttype_received_callback)