Return-Path: Message-ID: <50b40ba70807241118y79325efene53bde2612e8c783@mail.gmail.com> Date: Fri, 25 Jul 2008 02:18:38 +0800 From: "Nick Pelly" To: "BlueZ development" In-Reply-To: MIME-Version: 1.0 References: Subject: Re: [Bluez-devel] About socket interface Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1926688167==" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net --===============1926688167== Content-Type: multipart/alternative; boundary="----=_Part_57743_11715789.1216923518642" ------=_Part_57743_11715789.1216923518642 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline The HCI event that triggers this is the Connection Request Event 0x04, probably handled in hci_event.c 2008/7/25 Jui-Hao Chiang : > Hi, > I have a question about the user socket interface. > When I run the scotest -d, I know it will basically call sco_sock_accept in > sco.c > Inside it, there is a wait queue and try to find a new socket. > The accept() will be notified when there is a new connection coming from > another > client. > My question is: how the bluez notify the user socket "accept()"? Can anyone > tell > me where the event is generated and finally notify user socket accept()? > Just > need a keyword. > > Hope this time someone can answer me. maybe I am keeping asking stupid > question > so that nobody wants to answer it. > > Bests > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Bluez-devel mailing list > Bluez-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bluez-devel > ------=_Part_57743_11715789.1216923518642 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
The HCI event that triggers this is the Connection Request Event 0x04, probably handled in hci_event.c

2008/7/25 Jui-Hao Chiang <windtracekimo@gmail.com>:
Hi,
I have a question about the user socket interface.
When I run the scotest -d, I know it will basically call sco_sock_accept in sco.c
Inside it, there is a wait queue and try to find a new socket.
The accept() will be notified when there is a new connection coming from another
client.
My question is: how the bluez notify the user socket "accept()"? Can anyone tell
me where the event is generated and finally notify user socket accept()? Just
need a keyword.

Hope this time someone can answer me. maybe I am keeping asking stupid question
so that nobody wants to answer it.

Bests


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

------=_Part_57743_11715789.1216923518642-- --===============1926688167== 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 the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ --===============1926688167== 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 --===============1926688167==--