Return-Path: From: wim delvaux To: bluez-users@lists.sourceforge.net Subject: Re: [Bluez-users] what API to use to disconnect an rfcomm connection References: <200412110213.37305.wim.delvaux@adaptiveplanet.com> <200412111314.05010.wim.delvaux@adaptiveplanet.com> <1102768483.19086.21.camel@pegasus> In-Reply-To: <1102768483.19086.21.camel@pegasus> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Message-Id: <200412122338.11557.wim.delvaux@adaptiveplanet.com> 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: Sun, 12 Dec 2004 23:38:11 +0100 > 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? OK let's start again. if I run the command rfcomm 0 xxxxx 1 under a linux shell, the rfcomm program starts up and (if run in background) runs as a connection daemon between a device file /dev/xxx and a RFCOMM connection to - say - a telephone. On top of that rfcomm device file (/dev/xxx) you can run a pppd and hence create a GPRS connection over that phone. now suppose I want to disconnect from that GPRS connection. First I need to terminate the ppp connection. This is easy : just kill pppd. Next I need to disconnect from the phone. I.e. terminate the serial connection that the rfcomm daemon is managing. I could kill the 'appropriate' rfcomm daemon. However since the PAND daemon serves a very similar purpose and you can call PAND with -k to terminate a certain NAP/PANU - BNEP connection without having to kill that PAND I was wondering if there is a similar call for RFCOMM. The source for PAND shows that calling ioctl(ctl, bnepconndel, .... ) terminates a certain BNEP connection. Does RFCOMM have a similar API e.g. iotcl( ctl, rfcommconndel, ... ) ? W > > 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 ------------------------------------------------------- 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