コード例 #1
0
 def fileno(self):
     if WINDOWS:
         log_loading.error("Cannot get selectable PCAP fd on Windows")
         return 0
     else:
         # This does not exist under Windows
         return pcap_get_selectable_fd(self.pcap)
コード例 #2
0
ファイル: pcapdnet.py プロジェクト: commial/scapy
 def fileno(self):
     if WINDOWS:
         log_loading.error("Cannot get selectable PCAP fd on Windows")
         return 0
     else:
         # This does not exist under Windows
         from scapy.modules.winpcapy import pcap_get_selectable_fd
         return pcap_get_selectable_fd(self.pcap)
コード例 #3
0
 def fileno(self):
     if WINDOWS:
         log_loading.error("Cannot get selectable PCAP fd on Windows")
         return 0
     return pcap_get_selectable_fd(self.pcap)