MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / read_very_eager

Method read_very_eager

tools/python-3.11.9-amd64/Lib/telnetlib.py:359–371  ·  view source on GitHub ↗

Read everything that's possible without blocking in I/O (eager). Raise EOFError if connection closed and no cooked data available. Return b'' if no cooked data available otherwise. Don't block unless in the midst of an IAC sequence.

(self)

Source from the content-addressed store, hash-verified

357 return buf
358
359 def read_very_eager(self):
360 """Read everything that's possible without blocking in I/O (eager).
361
362 Raise EOFError if connection closed and no cooked data
363 available. Return b'' if no cooked data available otherwise.
364 Don't block unless in the midst of an IAC sequence.
365
366 """
367 self.process_rawq()
368 while not self.eof and self.sock_avail():
369 self.fill_rawq()
370 self.process_rawq()
371 return self.read_very_lazy()
372
373 def read_eager(self):
374 """Read readily available data.

Callers

nothing calls this directly

Calls 4

process_rawqMethod · 0.95
sock_availMethod · 0.95
fill_rawqMethod · 0.95
read_very_lazyMethod · 0.95

Tested by

no test coverage detected