From owner-freebsd-hackers@FreeBSD.ORG Fri May 25 21:39:16 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 86C46106564A for ; Fri, 25 May 2012 21:39:16 +0000 (UTC) (envelope-from raysonlogin@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 5B7C58FC19 for ; Fri, 25 May 2012 21:39:16 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so2446325pbb.13 for ; Fri, 25 May 2012 14:39:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=bzI6ggOPUavoIse21UvZZdVjIAI1rBjWepIaxMGFdso=; b=oAph8Dw5l8h1PV0/IhaqYIN38jLYbFwwtX0cmb4MqDpg9iXNpuVMn0Iq7/JIyYJOZp Icf8QaCDShWaeIXKvG47HngCji145TTrdkSIMtOujihTwdKw+fCaBIRDisbDRH7zEd44 Ku4mM9pvNxLZLXIgaH4jRDTua33Xq+aYLpIY5VrP23spuUSR0IrDe93fvVKw07WGd11S CpP3MVSNBYcxl0rWbvOgQ4/DIuQCRa9d/1XlkHNrsFnY69sE5CkwwTAcaTAcrxx+rXzb c8ZoS5susYeGie4Z8bHJzwYZjXa4QF7r3CqzCY04LVhv9t3vez4MPX4Zn4PcrvvNkVUp ku7A== MIME-Version: 1.0 Received: by 10.68.242.166 with SMTP id wr6mr1572085pbc.28.1337981955953; Fri, 25 May 2012 14:39:15 -0700 (PDT) Received: by 10.68.28.71 with HTTP; Fri, 25 May 2012 14:39:15 -0700 (PDT) In-Reply-To: References: Date: Fri, 25 May 2012 17:39:15 -0400 Message-ID: From: Rayson Ho To: "enrico d'urso" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: [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:39:16 -0000 You can google kqueue tutorial and get lots of example... Sadly, Google Code Search is dead, but Google is still your friend! Rayson =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D Open Grid Scheduler / Grid Engine http://gridscheduler.sourceforge.net/ Scalable Grid Engine Support Program http://www.scalablelogic.com/ On Fri, May 25, 2012 at 5:22 PM, enrico d'urso wrote: > > Hi, I'm Italian , so sorry for my bad English. > > I would understand something about Kevent function. > > Please, look this code: > > nev =3D kevent( kqueue_descr, events_list, how_many_targets,events_trig, = how_many_targets,&tmout); > > When kevent returns and nev is >0, 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; i< nev; 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 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0_______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org= " --=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Open Grid Scheduler - The Official Open Source Grid Engine http://gridscheduler.sourceforge.net/