Hi.

WinPcap is thread-safe in the same manner as libpcap is: all the APIs
regarding opening/closing adapters and receiving/sending packets are thread
safe (in the sense that you can use them with different adapters on
different threads).

The only API that is not thread safe is "pcap_compile" (which is code from
libpcap), that uses some global variables to compile the filters, as you can
see in this answer given by Darren on the libpcap mailing list:
http://www.tcpdump.org/lists/workers/2004/04/msg00173.html

Have a nice day
GV


----- Original Message ----- 
From: "Andreas Rieke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 22, 2004 7:45 PM
Subject: [WinPcap-users] Is WinPcap thread-safe?


> Hi there,
>
> is WinPcap really thread-safe? Did anybody really try to run it on
> multiple interfaces, one per thread?
>
> Thanks,
>
> Andreas
>
>
> ==================================================================
>  This is the WinPcap users list. It is archived at
>  http://www.mail-archive.com/[EMAIL PROTECTED]/
>
>  To unsubscribe use
>  mailto: [EMAIL PROTECTED]
> ==================================================================
>





==================================================================
 This is the WinPcap users list. It is archived at
 http://www.mail-archive.com/[EMAIL PROTECTED]/

 To unsubscribe use 
 mailto: [EMAIL PROTECTED]
==================================================================

Reply via email to