From owner-freebsd-hackers Wed Jul 18 12:47:56 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from taupo.cs.waikato.ac.nz (taupo.cs.waikato.ac.nz [130.217.241.30]) by hub.freebsd.org (Postfix) with ESMTP id 9222C37B403 for ; Wed, 18 Jul 2001 12:47:52 -0700 (PDT) (envelope-from joerg@taupo.cs.waikato.ac.nz) Received: (from joerg@localhost) by taupo.cs.waikato.ac.nz (8.11.3/8.11.1) id f6IJlZH95007; Thu, 19 Jul 2001 07:47:35 +1200 (NZST) (envelope-from joerg) Date: Thu, 19 Jul 2001 07:47:35 +1200 From: Joerg Micheel To: Andrey Simonenko Cc: freebsd-hackers@freebsd.org Subject: Re: libpcap and pthreads Message-ID: <20010719074735.H94236@cs.waikato.ac.nz> References: <012001c10f85$08ae6b40$6d36120a@comsys.ntukpi.kiev.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <012001c10f85$08ae6b40$6d36120a@comsys.ntukpi.kiev.ua>; from simon@comsys.ntu-kpi.kiev.ua on Wed, Jul 18, 2001 at 04:27:39PM +0400 Organization: Dept of Computer Science, University of Waikato, Hamilton, New Zealand Project: WAND - Waikato Applied Network Dynamics, DAG Operating-System: ... powered by FreeBSD Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Privjet Andrey, On Wed, Jul 18, 2001 at 04:27:39PM +0400, Andrey Simonenko wrote: > Is it possible to use libpcap with pthreads? > (I want to use just pcap_dispatch() function) I very much doubt so. It's not possible to use it in any kind of multithreaded applications, even with select() scenarios. They implement the Highlander principle - there can be only one (pcap). Sad. Joerg -- Joerg B. Micheel Email: WAND and NLANR MOAT Email: The University of Waikato, CompScience Phone: +64 7 8384794 Private Bag 3105 Fax: +64 7 8585095 Hamilton, New Zealand Plan: PMA, TINE and the DAG's To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message