You can google kqueue tutorial and get lots of example... Sadly,
Google Code Search is dead, but Google is still your friend!

Rayson

================================
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 <e.du...@live.com> wrote:
>
> Hi, I'm Italian , so sorry for my bad English.
>
> I would understand something about Kevent function.
>
> Please, look this code:
>
> nev = 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 to 
> understand what are ready I have to
> look in events_trig array?
>
> For example I can use a cycle as:
>
> for(i=0; i< nev; i++)
> if( events_trig[i].ident == mysocket)
> ....
>
> In the case you would look code it is here:
> http://forums.freebsd.org/showthread.php?p=178443#post178443
>
> Bye
>
> Enrico
>                                          
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"



-- 
==================================================
Open Grid Scheduler - The Official Open Source Grid Engine
http://gridscheduler.sourceforge.net/
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
  • [Kevent] enrico d'urso
    • Re: [Kevent] Rayson Ho

Reply via email to