Example #1
0
 def fileno(self):
     if WINDOWS:
         log_loading.error("Cannot get selectable PCAP fd on Windows")
         return -1
     else:
         # This does not exist under Windows
         return pcap_get_selectable_fd(self.pcap)
Example #2
0
 def fileno(self):
     if WINDOWS:
         return pcap_getevent(self.pcap)
     else:
         # This does not exist under Windows
         return pcap_get_selectable_fd(self.pcap)