(self)
| 135 | return select_objects(sockets, remain) |
| 136 | |
| 137 | def close(self): |
| 138 | # type: () -> None |
| 139 | if self.closed: |
| 140 | return |
| 141 | self.closed = True |
| 142 | if hasattr(self, "pcap_fd"): |
| 143 | # If failed to open, won't exist |
| 144 | self.pcap_fd.close() |
| 145 | |
| 146 | |
| 147 | ########## |