2005-08-30 13:46:43

by Andrea Carlevato

[permalink] [raw]
Subject: [Bluez-devel] sdp_connect, how to make it shorter ?

Hello to all,
i need to browse a set of random bt device for
a specific sdp profile. So use a function like
the "do_search" of sdptool.
But when an inquired bt device does not
aswer the request, the sdp_connect tries
for a long time to estabilish a connection,
and this is bad for my project.
How can i make much shorter the the sdp_connect
timeout ?

thanks a lot

Andrea


Attachments:
(No filename) (373.00 B)
(No filename) (439.00 B)
Download all attachments

2005-09-07 14:12:06

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] sdp_connect, how to make it shorter ?

Hi Andrea,

> ok, so what value can i use instead of SDP_RETRY_IF_BUSY ?

you simply set the flags parameter to zero and it will abort if it can't
connect.

Regards

Marcel




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2005-09-07 13:43:04

by Andrea Carlevato

[permalink] [raw]
Subject: Re: [Bluez-devel] sdp_connect, how to make it shorter ?

ok, so what value can i use instead of SDP_RETRY_IF_BUSY ?

thanks a lot
Andrea



On 9/5/05, Marcel Holtmann <[email protected]> wrote:
>
> Hi Andrea,
>
> > i need to browse a set of random bt device for
> > a specific sdp profile. So use a function like
> > the "do_search" of sdptool.
> > But when an inquired bt device does not
> > aswer the request, the sdp_connect tries
> > for a long time to estabilish a connection,
> > and this is bad for my project.
> > How can i make much shorter the the sdp_connect
> > timeout ?
>
> don't use the SDP_RETRY_IF_BUSY flag in sdp_connect().
>
> Regards
>
> Marcel
>
>
>
>
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle
> Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> Bluez-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>


Attachments:
(No filename) (1.14 kB)
(No filename) (1.67 kB)
Download all attachments

2005-09-05 12:09:14

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] sdp_connect, how to make it shorter ?

Hi Andrea,

> i need to browse a set of random bt device for
> a specific sdp profile. So use a function like
> the "do_search" of sdptool.
> But when an inquired bt device does not
> aswer the request, the sdp_connect tries
> for a long time to estabilish a connection,
> and this is bad for my project.
> How can i make much shorter the the sdp_connect
> timeout ?

don't use the SDP_RETRY_IF_BUSY flag in sdp_connect().

Regards

Marcel




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel