Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 May 2005 14:16:20 +0300
From:      Vlad GALU <vladgalu@gmail.com>
To:        freebsd-net@freebsd.org
Subject:   Re: SIOCGIFMEDIA problems
Message-ID:  <79722fad05051604166951a66@mail.gmail.com>
In-Reply-To: <20050516094309.GD777@obiwan.tataz.chchile.org>
References:  <20050513111013.41905e73.spe@phear.org> <m2wtq3cnkz.wl%gnn@neville-neil.com> <20050513191705.61d2b742.spe@phear.org> <20050516094309.GD777@obiwan.tataz.chchile.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 5/16/05, Jeremie Le Hen <jeremie@le-hen.org> wrote:
> Hi Sebastien,
>=20
> On Fri, May 13, 2005 at 07:17:05PM +0200, Sebastien Petit wrote:
> > [...]
>=20
> 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.
>=20

   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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
>=20


--=20
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.



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