From owner-freebsd-net@FreeBSD.ORG Mon May 16 11:16:21 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F78516A4CE for ; Mon, 16 May 2005 11:16:21 +0000 (GMT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id AEAE343D1F for ; Mon, 16 May 2005 11:16:20 +0000 (GMT) (envelope-from vladgalu@gmail.com) Received: by zproxy.gmail.com with SMTP id 40so2482085nzk for ; Mon, 16 May 2005 04:16:20 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=aCM77BhZ42VF9MjAf9drsVWKgW1Xcu+g4uemAwyajQObKLaQi1NjGx0ndKWbIeWklD+AD1lep53v20brYEXxC1FQqgNxd3SEEMa0XQSJjoi1jqUxH854h/BeSCaa523e968g0aKlSCfNpcn6bGchjsDT2UfVRSSHAJMwdkuo3Iw= Received: by 10.36.47.13 with SMTP id u13mr1503535nzu; Mon, 16 May 2005 04:16:20 -0700 (PDT) Received: by 10.36.82.2 with HTTP; Mon, 16 May 2005 04:16:20 -0700 (PDT) Message-ID: <79722fad05051604166951a66@mail.gmail.com> Date: Mon, 16 May 2005 14:16:20 +0300 From: Vlad GALU To: freebsd-net@freebsd.org In-Reply-To: <20050516094309.GD777@obiwan.tataz.chchile.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050513111013.41905e73.spe@phear.org> <20050513191705.61d2b742.spe@phear.org> <20050516094309.GD777@obiwan.tataz.chchile.org> Subject: Re: SIOCGIFMEDIA problems X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Vlad GALU List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 May 2005 11:16:21 -0000 On 5/16/05, Jeremie Le Hen 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.