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

Method read_eager

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

Read readily available data. 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

371 return self.read_very_lazy()
372
373 def read_eager(self):
374 """Read readily available data.
375
376 Raise EOFError if connection closed and no cooked data
377 available. Return b'' if no cooked data available otherwise.
378 Don't block unless in the midst of an IAC sequence.
379
380 """
381 self.process_rawq()
382 while not self.cookedq and not self.eof and self.sock_avail():
383 self.fill_rawq()
384 self.process_rawq()
385 return self.read_very_lazy()
386
387 def read_lazy(self):
388 """Process and return data that's already in the queues (lazy).

Callers 2

interactMethod · 0.95
listenerMethod · 0.95

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