Re: pylibpcap and multiple threads

2005-01-25 Thread Örjan Gustavsson
Hi Carlos, I looked in the source code for pylibpcap, and it does not release the GIL, hence my problem. I found a solution though, the pcap object has a fileno member so I could use select to wait for a packet, then call loop without blocking. Problem solved! :) And since it is only a thin wr

Re: pylibpcap and multiple threads

2005-01-24 Thread Carlos Ribeiro
On Mon, 24 Jan 2005 15:18:39 +0100, Örjan Gustavsson <[EMAIL PROTECTED]> wrote: > Hi All! > > Sorry if this is not the correct forum for this kind of question (I did > not find any pylibpcap related lists). > > I am trying to use pylibpcap to capture network traffic from several > ethernet device

pylibpcap and multiple threads

2005-01-24 Thread Örjan Gustavsson
Hi All! Sorry if this is not the correct forum for this kind of question (I did not find any pylibpcap related lists). I am trying to use pylibpcap to capture network traffic from several ethernet devices at the same time, each nic having a separate thread assigned to it. My problem is that wh