Return-Path: From: Sumeet VERMA To: "'BlueZ users'" Date: Tue, 21 Nov 2006 12:46:01 +0530 Message-ID: <00c701c70d3c$e69f31e0$8935c70a@dlh.st.com> MIME-Version: 1.0 In-Reply-To: <1164026459.28397.33.camel@localhost> Subject: Re: [Bluez-users] L2CAP disconnect problem Reply-To: BlueZ users List-Id: BlueZ users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Sender: bluez-users-bounces@lists.sourceforge.net Errors-To: bluez-users-bounces@lists.sourceforge.net Hi Marcel I am using 2.4-20.8 with bluez-utils-2.25 I also tried using shutdown(fd, SHUT_RDWR) instead of close(fd) but still the rfcomm doesn't disconnect. This happens only when I get an incoming RFCOMM connection. When I initiate a connection, and disconnect, it works. Regards, Sumeet -----Original Message----- From: bluez-users-bounces@lists.sourceforge.net [mailto:bluez-users-bounces@lists.sourceforge.net] On Behalf Of Marcel Holtmann Sent: Monday, November 20, 2006 6:11 PM To: BlueZ users Subject: Re: [Bluez-users] L2CAP disconnect problem Hi Summeet, > I am testing a HS-Gateway application. I have a listening thread which > waits for incoming HS connection. I am using > > sk = socket(AF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM); > then bind and then waiting on accept() > > Now connection is successful but when I disconnect I see the RFCOMM channel disconnecting but then L2CAP doesn't disconnect. After a UA is received there is no L2CAP disc which I am expecting. Anybody faced this problem before? > > Listening thread code is referenced from scotest.c but it doesn't > work..:( actually the RFCOMM control is not disconnected and unless this one disconnects, the L2CAP will not close that PSM. What kernel version do you use? Regards Marcel ------------------------------------------------------------------------- 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-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users ------------------------------------------------------------------------- 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-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users