RE: [WinPcap-users] How to gather STAT without using pcap_loop

2003-02-19 Thread Fulvio Risso
Sorry for the delay. The easiest way to solve the problem is to use the pcap_read_ex() (which is no blocking, it does not require to be into a separate thread, it is source-independent), then call the pcap_stats(). We have such this code in Analyzer. Please do not use calls declared into the

RE: [WinPcap-users] How to gather STAT without using pcap_loop

2003-02-10 Thread Jason Copeland
Is it possible to gather STATS from the adapter without using pcap_loop() and the callback method. Have you looked at 'BOOLEAN PacketGetStats(LPADAPTER AdapterObject, struct bpf_stat *s)'? == This is the WinPcap users list. It

Re: [WinPcap-users] How to gather STAT without using pcap_loop

2003-02-10 Thread lcerulli
: [WinPcap-users] How to gather STAT without using pcap_loop Is it possible to gather STATS from the adapter without using pcap_loop() and the callback method. Have you looked at 'BOOLEAN PacketGetStats(LPADAPTER AdapterObject, struct bpf_stat *s

RE: [WinPcap-users] How to gather STAT without using pcap_loop

2003-02-10 Thread Jason Copeland
Have you looked at 'BOOLEAN PacketGetStats(LPADAPTER AdapterObject, struct bpf_stat *s)'? Yes i did, but is it possible to get the AdapterObject param from the WinPcap API pcap_t struct that comes out from pcap_open_live ? Is there a function to retrive the Adapter handle?? i