Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 May 2012 23:22:53 +0200
From:      enrico d'urso <e.durso@live.com>
To:        <freebsd-hackers@freebsd.org>
Subject:   [Kevent]
Message-ID:  <DUB116-W851B2C75F31C51D6C1923D97010@phx.gbl>

next in thread | raw e-mail | index | archive | help

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
 		 	   		  =



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DUB116-W851B2C75F31C51D6C1923D97010>