1PCAP_SET_TIMEOUT(3PCAP)                                PCAP_SET_TIMEOUT(3PCAP)
2
3
4

NAME

6       pcap_set_timeout  -  set  the packet buffer timeout for a not-yet-acti‐
7       vated capture handle
8

SYNOPSIS

10       #include <pcap/pcap.h>
11
12       int pcap_set_timeout(pcap_t *p, int to_ms);
13

DESCRIPTION

15       pcap_set_timeout() sets the packet buffer timeout that will be used  on
16       a  capture  handle  when  the handle is activated to to_ms, which is in
17       units of milliseconds.  (See pcap(3PCAP)  for  an  explanation  of  the
18       packet buffer timeout.)
19
20       The  behavior,  if the timeout isn't specified, is undefined, as is the
21       behavior if the timeout is set to zero or to a negative value.  We rec‐
22       ommend  always setting the timeout to a non-zero value unless immediate
23       mode is set, in which case the timeout has no effect.
24

RETURN VALUE

26       pcap_set_timeout() returns 0  on  success  or  PCAP_ERROR_ACTIVATED  if
27       called on a capture handle that has been activated.
28

SEE ALSO

30       pcap_create(3PCAP),                               pcap_activate(3PCAP),
31       pcap_set_immediate_mode(3PCAP)
32
33
34
35                                6 December 2017        PCAP_SET_TIMEOUT(3PCAP)
Impressum