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

Method select

scapy/arch/libpcap.py:681–689  ·  view source on GitHub ↗
(sockets, remain=None)

Source from the content-addressed store, hash-verified

679
680 @staticmethod
681 def select(sockets, remain=None):
682 # type: (List[SuperSocket], Optional[float]) -> List[SuperSocket]
683 socks = [] # type: List[SuperSocket]
684 for sock in sockets:
685 if isinstance(sock, L3pcapSocket):
686 socks += sock.send_socks.values()
687 else:
688 socks.append(sock)
689 return L2pcapSocket.select(socks, remain=remain)
690
691 def close(self):
692 # type: () -> None

Callers

nothing calls this directly

Calls 2

valuesMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected