[Winpcap-users] Multiple Capture Sessions

Gianluca Varenni gianluca.varenni at cacetech.com
Tue Jan 9 17:39:23 GMT 2007


----- Original Message ----- 
From: "Jonathan Hunt" <jgwehunt at gmail.com>
To: <winpcap-users at winpcap.org>
Sent: Sunday, January 07, 2007 12:58 AM
Subject: [Winpcap-users] Multiple Capture Sessions


> Hi everyone
>
> I'm developing an application which would benefit from being able to  run 
> two WinPcap sessions in parallel, each with its own capture  filter. Is 
> there a way of doing this in WinPcap 4?

Just open multiple pcap_t handles to the same adapter by calling 
pcap_open_xxx(). I would probably use a different thread per capture 
instance, so that each thread processes its own packets.

Hope it helps
GV

>
> Many thanks
>
> Jonathan
> _______________________________________________
> Winpcap-users mailing list
> Winpcap-users at winpcap.org
> https://www.winpcap.org/mailman/listinfo/winpcap-users 



More information about the Winpcap-users mailing list