Date: Fri, 08 Feb 2008 09:41:51 +0000 From: "Bruce M. Simpson" <bms@FreeBSD.org> To: Paul <myj@nyct.net> Cc: freebsd-stable@freebsd.org Subject: Re: kevent on UDP sockets Message-ID: <47AC23DF.5030306@FreeBSD.org> In-Reply-To: <20080207133127.T50745@bsd4.nyct.net> References: <20080207133127.T50745@bsd4.nyct.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Paul wrote: > > I'm having trouble with kevent() in connection with UDP sockets > (6.2-STABLE). > > Registering an event seems to work, but when UDP packet arrives on the > socket, kevent returns with 0. > > Is there currently a working support for UDP sockets in kqueue/kevent, > or does it only apply to TCP sockets ? I can't recall specifics but I had a working routing daemon skeleton using UDP with kqueue around 5 years ago. I didn't use oneshot, and treated it much like select() i.e. the input event is level triggered, every time you call you should get the event. This is unlike WSAEventSelect() in Windows which is edge triggered. later BMS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47AC23DF.5030306>