How do I create a new thread to make pcap_loop() and gtk_main() compatible?
Posted
by httpinterpret
on Stack Overflow
See other posts from Stack Overflow
or by httpinterpret
Published on 2010-05-08T07:39:00Z
Indexed on
2010/05/08
7:48 UTC
Read the original article
Hit count: 293
These two functions are both infinite loops,
and the programe hangs once called in the same thread.
gtk_main();
...
pcap_loop(adhandle, 0, packet_handler, NULL);
How do I create a child thread and run pcap_loop(adhandle, 0, packet_handler, NULL);
instead?
© Stack Overflow or respective owner