This is our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

hello all,

I am using libwireshark.so (shared library for wireshark)v1.6.5 for dissecting network packets, now i want to make my application multithreaded.

so, is it possible to use libworeshark in a multithreaded environment, because every time i am executing the multithreaded application for dissecting packets, first thread works fine, after then no thread can dissect data.

asked 28 Feb '13, 23:59

Sanny_D's gravatar image

Sanny_D
0182021
accept rate: 50%


Libwireshark is not thread safe, and isn't likely to be made so in the future. You'll just have to call libwireshark from a single process thread.

permanent link

answered 01 Mar '13, 02:39

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×158
×31
×18
×17
×2

question asked: 28 Feb '13, 23:59

question was seen: 3,036 times

last updated: 15 May '13, 22:08

p​o​w​e​r​e​d by O​S​Q​A