Date: Sun, 4 Oct 2009 14:39:42 +0000 From: Masoom Shaikh <masoom.shaikh@gmail.com> To: Iain Hibbert <plunky@rya-online.net> Cc: freebsd-bluetooth@freebsd.org Subject: Re: remote_name_request, using libbluetooth Message-ID: <b10011eb0910040739w2e522bd5h7114214dffa68a6b@mail.gmail.com> In-Reply-To: <1254643032.101648.162.nullmailer@galant.ukfsn.org> References: <b10011eb0910030706i381052felb65318164195d80d@mail.gmail.com> <1254600808.002635.1652.nullmailer@galant.ukfsn.org> <b10011eb0910032156i1788fc71rf599bb251916006b@mail.gmail.com> <1254643032.101648.162.nullmailer@galant.ukfsn.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Oct 4, 2009 at 7:57 AM, Iain Hibbert <plunky@rya-online.net> wrote: > On Sun, 4 Oct 2009, Masoom Shaikh wrote: > > > > On Sat, 3 Oct 2009, Masoom Shaikh wrote: > > > > > > > int status = bt_devreq( s, &request, 0); > > > > yes, i did forgot to say where it failed, devices are inquired properly > no > > issues there > > but bt_devreq() fails with status == -1 > > ah, I see.. you should put a non-zero timeout value there (waiting for 0 > seconds will not leave enough time for the response :) > > if you use eg > > if (status == -1) > err(1, "bt_devreq (RemoteNameRequest)") > > then you would see an "Operation timed out" message.. I should think 5 > seconds would be reasonable.. > > regards, > iain > > > u got the bug by neck, and i would have slit its neck by the time this mail is in your inbox ;-) that was the exact error, timeout value of 5 didn't work for me, thus am using 60, and it works thanks Iain
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b10011eb0910040739w2e522bd5h7114214dffa68a6b>