]> The Tcpdump Group git mirrors - libpcap/commit
Add APIs to put a "pcap_t" into or out of non-blocking mode, and to get
authorguy <guy>
Sun, 9 Dec 2001 05:10:02 +0000 (05:10 +0000)
committerguy <guy>
Sun, 9 Dec 2001 05:10:02 +0000 (05:10 +0000)
commita82f1618b8a3e6203923618b8c9dad07d4bdea4d
tree7b96a269c3b134d7eca781387d42c0ea043ca596
parentb0ea1152b6f3a59ece2c2cb5777ffd80a17e5209
Add APIs to put a "pcap_t" into or out of non-blocking mode, and to get
the current state of non-blocking mode; this allows us to implement, for
example, memory-mapped capture devices, where "pcap_read()" uses
"select()" or "poll()" to wait for packets to arrive, and hide that
implementation detail from applications using this API
("pcap_setnonblock()" would set or clear a non-blocking mode flag in the
"pcap_t", and the "select()" or "poll()" would not be done if the
"pcap_t" is in non-blocking mode).
pcap.3
pcap.c
pcap.h