Manpage of PCAP_GET_REQUIRED_SELECT_TIMEOUT
Section: Misc. Reference Manual Pages (3PCAP)
Updated: 25 July 2018
Return to Main Contents
pcap_get_required_select_timeout - get a file descriptor on which a
select() can be done for a live capture
struct timeval *pcap_get_required_select_timeout(pcap_t *p);
returns, on UNIX, a pointer to a
containing a value that must be used as the minimum timeout in
The timeout that should be used in those calls must be no larger than
the smallest of all timeouts returned by
for devices from which packets will be captured.
The device for which
must be put in non-blocking mode with
and an attempt must always be made to read packets from the device
Note that a device on which a read can be done without blocking may,
on some platforms, not have any packets to read if the packet buffer
timeout has expired. A call to
will return 0 in this case, but will not block.
is not available on Windows.
A pointer to a
is returned if the timeout is required; otherwise
This function became available in libpcap release 1.9.0. In previous
cannot be used on any capture source for which
pcap(3PCAP), pcap_get_selectable_fd(3PCAP), select(2), poll(2),
This document was created by
using the manual pages from "The Tcpdump Group" git repositories.
Time: 06:01:45 GMT, August 23, 2018