Hello!
 
I have a problem detecting a device that has closed it's connection.
 
The software I'm developing sends and receives data through sockets to a slave device. When I switch of the slave device I expect that send and receive should return the value 0, as in ordinary sockets programming for TCP and UDP sockets. But instead send happily always returns a value which is bigger than 0. Why? Shouldn't Bluetooth sockets behave the same way as ordinary sockets? I have a quite old Bluez, version 2.15. Is there another way of detecting closed connections?
 
Regards:
-Mikael


Express yourself instantly with MSN Messenger! MSN Messenger