From: wim delvaux <wim.delvaux@adaptiveplanet.com>
To: bluez-users@lists.sourceforge.net
Subject: Re: [Bluez-users] what API to use to disconnect an rfcomm connection
Date: Sat, 11 Dec 2004 13:14:04 +0100 [thread overview]
Message-ID: <200412111314.05010.wim.delvaux@adaptiveplanet.com> (raw)
In-Reply-To: <1102756108.19086.1.camel@pegasus>
On Saturday 11 December 2004 10:08, Marcel Holtmann wrote:
> 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.
Is that more clear ?
Thanx
W
-------------------------------------------------------
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
next prev parent reply other threads:[~2004-12-11 12:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-11 1:13 [Bluez-users] what API to use to disconnect an rfcomm connection wim delvaux
2004-12-11 9:08 ` Marcel Holtmann
2004-12-11 12:14 ` wim delvaux [this message]
2004-12-11 12:34 ` Marcel Holtmann
2004-12-12 22:38 ` wim delvaux
2004-12-13 8:11 ` Marcel Holtmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200412111314.05010.wim.delvaux@adaptiveplanet.com \
--to=wim.delvaux@adaptiveplanet.com \
--cc=bluez-users@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox