Skip to contentSkip to conversation

RFCOMM problem

Bluez-users Jin Pu 2 participants 2 messages Apr 8, 2005 Bluetooth drivers

lore
Share & tools
lore

Jin Pu

author
#0 lore raw

Hello :
Now,I'm programming with RFCOMM socket. I can use RFCOMM=
socket to connect with my PDA,but I don't know how to catch the
disconnection event when PDA disconnect the RFCOMM connection=
between them first. What shall I do ?
Thanks.

=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1Jin Pu
=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1

-------------------------------------------------------
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-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#1 lore raw

Hi,

Quoted 2 lines

Now,I'm programming with RFCOMM socket. I can use RFCOMM socket to connect with my PDA,but I don't know how to catch the
disconnection event when PDA disconnect the RFCOMM connection between them first. What shall I do ?

use select() or poll() and check for a HUP signal.

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-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users