2005-03-07 03:10:13

by mike lee

[permalink] [raw]
Subject: [Bluez-devel] about connection timeout

Hi all
How can i know there is connection error? And when i want to
reconnect the other side, do i need to reset the bluetooth stack ?

best regard
Mike,Lee


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel


2005-03-09 17:55:09

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] about connection timeout

Hi,

> How can i know there is connection error?

you can look at the error code of the connect() call or check with
select() or poll() on that socket. Or you can open a HCI raw socket and
look for a HCI disconnect event.

> And when i want to
> reconnect the other side, do i need to reset the bluetooth stack ?

No.

Regards

Marcel




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel