MCPcopy Index your code
hub / github.com/secdev/scapy / select

Method select

scapy/automaton.py:264–273  ·  view source on GitHub ↗
(sockets, remain=conf.recv_poll_rate)

Source from the content-addressed store, hash-verified

262
263 @staticmethod
264 def select(sockets, remain=conf.recv_poll_rate):
265 # type: (List[SuperSocket], Optional[float]) -> List[SuperSocket]
266 # Only handle ObjectPipes
267 results = []
268 for s in sockets:
269 if s.closed: # allow read to trigger EOF
270 results.append(s)
271 if results:
272 return results
273 return select_objects(sockets, remain)
274
275
276class Message:

Callers 1

select_objectsFunction · 0.45

Calls 2

select_objectsFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected