Return-Path: Subject: Re: [Bluez-users] what API to use to disconnect an rfcomm connection From: Marcel Holtmann To: BlueZ Mailing List In-Reply-To: <200412111314.05010.wim.delvaux@adaptiveplanet.com> References: <200412110213.37305.wim.delvaux@adaptiveplanet.com> <1102756108.19086.1.camel@pegasus> <200412111314.05010.wim.delvaux@adaptiveplanet.com> Content-Type: text/plain Message-Id: <1102768483.19086.21.camel@pegasus> Mime-Version: 1.0 Sender: bluez-users-admin@lists.sourceforge.net Errors-To: bluez-users-admin@lists.sourceforge.net Reply-To: bluez-users@lists.sourceforge.net List-Unsubscribe: , List-Id: BlueZ users List-Post: List-Help: List-Subscribe: , List-Archive: Date: Sat, 11 Dec 2004 13:34:43 +0100 Hi Wim, > > > if you started > > > > > > rfcomm x XXXXXXXXXX y & > > > and the connection to XXXXXXXXXXX is running, > > > > > > How can other application terminate that connection (much like pand -k > > > addr) > > > > > > What API (ioctl ?) should be used ? Code samples ?> > > > > the use of ACL connections is tracked with reference counting and as > > long as there is a upper layer connection using the ACL link it is not > > closed. If the last one is gone, the disconnect timer is started and > > after the timeout the ACL link is terminated. > > > I want to create a 'hangup' button that should disconnect from > a phone connection immediately. This means that is > should terminate say the ppp connection ontop of the serial > connection and also the serial connection to the phone. > > What you say is that if I close the ppp after a while the rfcomm > connection would stop automatically. That is nice but that is > not what I want. > > So I am looking for an equivalent to pressing CTRL-C in the > controlling terminate of the running rfcomm daemon using a > C-API call. this makes it even more unclear to me. You talked about PAN and RFCOMM. What profiles do you wanna serve? What is your current setup? 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://productguide.itmanagersjournal.com/ _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users