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

Function readwrite

tools/python-3.11.9-amd64/Lib/asyncore.py:110–128  ·  view source on GitHub ↗
(obj, flags)

Source from the content-addressed store, hash-verified

108 obj.handle_error()
109
110def readwrite(obj, flags):
111 try:
112 if flags & select.POLLIN:
113 obj.handle_read_event()
114 if flags & select.POLLOUT:
115 obj.handle_write_event()
116 if flags & select.POLLPRI:
117 obj.handle_expt_event()
118 if flags & (select.POLLHUP | select.POLLERR | select.POLLNVAL):
119 obj.handle_close()
120 except OSError as e:
121 if e.errno not in _DISCONNECTED:
122 obj.handle_error()
123 else:
124 obj.handle_close()
125 except _reraised_exceptions:
126 raise
127 except:
128 obj.handle_error()
129
130def poll(timeout=0.0, map=None):
131 if map is None:

Callers 1

poll2Function · 0.85

Calls 5

handle_read_eventMethod · 0.80
handle_write_eventMethod · 0.80
handle_expt_eventMethod · 0.80
handle_closeMethod · 0.45
handle_errorMethod · 0.45

Tested by

no test coverage detected