From owner-freebsd-hackers@FreeBSD.ORG Fri May 25 21:24:02 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 114FF106566B for ; Fri, 25 May 2012 21:24:02 +0000 (UTC) (envelope-from e.durso@live.com) Received: from dub0-omc2-s15.dub0.hotmail.com (dub0-omc2-s15.dub0.hotmail.com [157.55.1.154]) by mx1.freebsd.org (Postfix) with ESMTP id A00AB8FC15 for ; Fri, 25 May 2012 21:24:01 +0000 (UTC) Received: from DUB116-W85 ([157.55.1.138]) by dub0-omc2-s15.dub0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 25 May 2012 14:22:53 -0700 Message-ID: X-Originating-IP: [79.9.55.171] From: enrico d'urso To: Date: Fri, 25 May 2012 23:22:53 +0200 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 25 May 2012 21:22:53.0663 (UTC) FILETIME=[8BC21EF0:01CD3ABC] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: [Kevent] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 May 2012 21:24:02 -0000 Hi=2C I'm Italian =2C so sorry for my bad English. I would understand something about Kevent function. Please=2C look this code: nev =3D kevent( kqueue_descr=2C events_list=2C how_many_targets=2Cevents_tr= ig=2C how_many_targets=2C&tmout)=3B When kevent returns and nev is >0=2C nev is equal to ready descriptor and t= o understand what are ready I have to look in events_trig array? For example I can use a cycle as: for(i=3D0=3B i< nev=3B i++) if( events_trig[i].ident =3D=3D mysocket) .... In the case you would look code it is here: http://forums.freebsd.org/showthread.php?p=3D178443#post178443 Bye Enrico =