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 received_data(self, data):
      self.data_received_callback(data)
  
file_path: catboost/contrib/python/prompt-toolkit/py2/prompt_toolkit/contrib/telnet/protocol.py
imports: from __future__ import unicode_literals
  import struct
  from six import int2byte, binary_type, iterbytes
  from .log import logger
label_desc: Use image node_id 2 for calling the TelnetProtocolParser obj's underlying member method code with example usage: obj.received_data(data) without return types