Skip to contentSkip to conversation

sdp_connect, how to make it shorter ?

Bluez-devel Andrea Carlevato 2 participants 4 messages Aug 30, 2005 – Sep 7, 2005 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

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

maintainer
#1 lore raw

Hi Andrea,

Quoted 9 lines

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

#2 lore raw

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

thanks a lot
Andrea

Quoted 33 lines · Marcel Holtmann

Hi Andrea,

Quoted 9 lines

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

maintainer
#3 lore raw

Hi Andrea,

Quoted 1 line

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