2007-01-23 15:42:20

by Mark S. Townsley

[permalink] [raw]
Subject: [Bluez-devel] checking RFCOMM status

Hi:

Is there any way I can get the status of an RFCOMM socket connection to
detect whether it is still alive or it has been disconnected somehow? In my
application (in C++), I need to stay on top of the status of the RFCOMM
connection and do something if it is no longer active for some reasons

Thanks

Mark


Attachments:
(No filename) (311.00 B)
(No filename) (340.00 B)
(No filename) (347.00 B)
(No filename) (164.00 B)
Download all attachments

2007-01-23 21:15:13

by Ulisses Furquim

[permalink] [raw]
Subject: Re: [Bluez-devel] checking RFCOMM status

On 1/23/07, Mark S. Townsley <[email protected]> wrote:
> Is there any way I can get the status of an RFCOMM socket connection to
> detect whether it is still alive or it has been disconnected somehow? In my
> application (in C++), I need to stay on top of the status of the RFCOMM
> connection and do something if it is no longer active for some reasons

You can use select() or poll() on the socket to know which events occurred.

-- Ulisses

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel