MCPcopy Create free account
hub / github.com/secdev/scapy / _flush_fd

Function _flush_fd

scapy/arch/linux/__init__.py:194–201  ·  view source on GitHub ↗
(fd)

Source from the content-addressed store, hash-verified

192
193
194def _flush_fd(fd):
195 # type: (int) -> None
196 while True:
197 r, w, e = select([fd], [], [], 0)
198 if r:
199 os.read(fd, MTU)
200 else:
201 break
202
203
204class L2Socket(SuperSocket):

Callers 1

__init__Method · 0.85

Calls 1

readMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…