Re: call to pypcap in separate thread blocks other threads

2009-12-30 Thread Dmitry Teslenko
On Wed, Dec 30, 2009 at 18:25, aspineux wrote: > On Dec 30, 3:07 pm, Dmitry Teslenko wrote: >> On Wed, Dec 30, 2009 at 16:18, aspineux wrote: >> > On Dec 30, 1:34 pm, Dmitry Teslenko wrote: >> >> Hello! >> >> I'm making gui gtk application. I'm using pypcap >> >> (http://code.google.com/p/pypca

Re: call to pypcap in separate thread blocks other threads

2009-12-30 Thread Grant Edwards
On 2009-12-30, Dmitry Teslenko wrote: > I'm making gui gtk application. I'm using pypcap > (http://code.google.com/p/pypcap/) to sniff some network packets. > To avoid gui freezing I put pcap call to another thread. > Pypcap call looks like: > > pc = pcap.pcap() > pc.setfilter('tcp') > for ts, pk

Re: call to pypcap in separate thread blocks other threads

2009-12-30 Thread aspineux
On Dec 30, 3:07 pm, Dmitry Teslenko wrote: > On Wed, Dec 30, 2009 at 16:18, aspineux wrote: > > On Dec 30, 1:34 pm, Dmitry Teslenko wrote: > >> Hello! > >> I'm making gui gtk application. I'm using pypcap > >> (http://code.google.com/p/pypcap/) to sniff some network packets. > >> To avoid gui fr

Re: call to pypcap in separate thread blocks other threads

2009-12-30 Thread Dmitry Teslenko
On Wed, Dec 30, 2009 at 16:18, aspineux wrote: > On Dec 30, 1:34 pm, Dmitry Teslenko wrote: >> Hello! >> I'm making gui gtk application. I'm using pypcap >> (http://code.google.com/p/pypcap/) to sniff some network packets. >> To avoid gui freezing I put pcap call to another thread. >> Pypcap call

Re: call to pypcap in separate thread blocks other threads

2009-12-30 Thread aspineux
On Dec 30, 1:34 pm, Dmitry Teslenko wrote: > Hello! > I'm making gui gtk application. I'm using pypcap > (http://code.google.com/p/pypcap/) to sniff some network packets. > To avoid gui freezing I put pcap call to another thread. > Pypcap call looks like: > > pc = pcap.pcap() > pc.setfilter('tcp')

call to pypcap in separate thread blocks other threads

2009-12-30 Thread Dmitry Teslenko
Hello! I'm making gui gtk application. I'm using pypcap (http://code.google.com/p/pypcap/) to sniff some network packets. To avoid gui freezing I put pcap call to another thread. Pypcap call looks like: pc = pcap.pcap() pc.setfilter('tcp') for ts, pkt in pc: spkt = str(pkt) ... Sa