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
Marcel Holtmann
maintainerHi 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, thesdp_connecttries for a long time to estabilish a connection, and this is bad for my project.
How can i make much shorter the thesdp_connecttimeout ?
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
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, thesdp_connecttries for a long time to estabilish a connection, and this is bad for my project.
How can i make much shorter the thesdp_connecttimeout ?don't use the
SDP_RETRY_IF_BUSYflag insdp_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
Marcel Holtmann
maintainerHi 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