From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: From: Mikael Bengtsson To: Date: Wed, 3 Oct 2007 10:40:08 +0200 MIME-Version: 1.0 Subject: [Bluez-devel] Problem detecting closed connection Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0274116202==" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net --===============0274116202== Content-Type: multipart/alternative; boundary="_9b3277a9-560e-453f-8b46-a0e30b142212_" --_9b3277a9-560e-453f-8b46-a0e30b142212_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello! =20 I have a problem detecting a device that has closed it's connection. =20 The software I'm developing sends and receives data through sockets to a sl= ave device. When I switch of the slave device I expect that send and receiv= e 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 bigg= er 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 d= etecting closed connections? =20 Regards: -Mikael _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/= --_9b3277a9-560e-453f-8b46-a0e30b142212_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 sl= ave device. When I switch of the slave device I expect that send and receiv= e 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 bigg= er 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 d= etecting closed connections?
 
Regards:
-Mikael


Express yourself instantly with MSN Messenger! MSN Messenger = --_9b3277a9-560e-453f-8b46-a0e30b142212_-- --===============0274116202== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ --===============0274116202== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel --===============0274116202==--