SIOCGIFMEDIA problems
Vlad GALU
vladgalu at gmail.com
Mon May 16 04:16:21 PDT 2005
On 5/16/05, Jeremie Le Hen <jeremie at le-hen.org> wrote:
> Hi Sebastien,
>
> On Fri, May 13, 2005 at 07:17:05PM +0200, Sebastien Petit wrote:
> > [...]
>
> as a side note, you may wish to use the kqueue(2) framework to watch
> at link stat changes. The main advantage is that it will change the
> way it works from a polling model to a notification model. One major
> drawback in your situation (portable software) is that kqueue(2) only
> exists in BSD world, not in Linux.
>
Or better, use libevent, which wraps all of the above I/O
multiplexing mechanisms.
P.S. kqueue also follows a polling model. You have to issue a kqueue()
syscall in order to get pending events.
> Best regards,
> --
> Jeremie Le Hen
> < jeremie at le-hen dot org >< ttz at chchile dot org >
> _______________________________________________
> freebsd-net at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"
>
--
If it's there, and you can see it, it's real.
If it's not there, and you can see it, it's virtual.
If it's there, and you can't see it, it's transparent.
If it's not there, and you can't see it, you erased it.
More information about the freebsd-net
mailing list