public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] Asynchronous SDP With DBUS API
       [not found]       ` <BAY102-W409DB55A6A242470BDB930F02B0@phx.gbl>
@ 2008-02-13 16:25         ` Robert Rawlins
  2008-02-13 16:30           ` Marcel Holtmann
  0 siblings, 1 reply; 3+ messages in thread
From: Robert Rawlins @ 2008-02-13 16:25 UTC (permalink / raw)
  To: bluez-devel


[-- Attachment #1.1: Type: text/plain, Size: 909 bytes --]

Hello List,
 
I've been playing around with the DBUS API over the past week or two and notice a large number of the methods implemented are asynchronous and send back signals when results from them are returned, however, this doesn't appear to be the case with an SDP enquiry placed through the service which appears to run synchronously.
 
What's the reason behind this? are we not able to have it emit a signal such as 'serviceFound()' or something to that effect? is this down to a limitation of the hardware? the stack? or am I just coding against the API incorrectly?
 
Has anyone been able to find an Asynchronous implementation for SDP enquiries? even if its some form of threaded work around.
 
Thanks for any advice you can offer.
 
Robert
_________________________________________________________________
Free games, great prizes - get gaming at Gamesbox. 
http://www.searchgamesbox.com

[-- Attachment #1.2: Type: text/html, Size: 1153 bytes --]

[-- Attachment #2: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bluez-devel] Asynchronous SDP With DBUS API
  2008-02-13 16:25         ` [Bluez-devel] Asynchronous SDP With DBUS API Robert Rawlins
@ 2008-02-13 16:30           ` Marcel Holtmann
  2008-02-13 16:58             ` Robert Rawlins
  0 siblings, 1 reply; 3+ messages in thread
From: Marcel Holtmann @ 2008-02-13 16:30 UTC (permalink / raw)
  To: BlueZ development

Hi Robert,

> I've been playing around with the DBUS API over the past week or two
> and notice a large number of the methods implemented are asynchronous
> and send back signals when results from them are returned, however,
> this doesn't appear to be the case with an SDP enquiry placed through
> the service which appears to run synchronously.
>  
> What's the reason behind this? are we not able to have it emit a
> signal such as 'serviceFound()' or something to that effect? is this
> down to a limitation of the hardware? the stack? or am I just coding
> against the API incorrectly?
>  
> Has anyone been able to find an Asynchronous implementation for SDP
> enquiries? even if its some form of threaded work around.

actually D-Bus method calls are always asynchronous.

Regards

Marcel



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bluez-devel] Asynchronous SDP With DBUS API
  2008-02-13 16:30           ` Marcel Holtmann
@ 2008-02-13 16:58             ` Robert Rawlins
  0 siblings, 0 replies; 3+ messages in thread
From: Robert Rawlins @ 2008-02-13 16:58 UTC (permalink / raw)
  To: BlueZ development


[-- Attachment #1.1: Type: text/plain, Size: 2073 bytes --]

Hi Marcel,
 
> Hi Robert,> > > I've been playing around with the DBUS API over the past week or two> > and notice a large number of the methods implemented are asynchronous> > and send back signals when results from them are returned, however,> > this doesn't appear to be the case with an SDP enquiry placed through> > the service which appears to run synchronously.> > > > What's the reason behind this? are we not able to have it emit a> > signal such as 'serviceFound()' or something to that effect? is this> > down to a limitation of the hardware? the stack? or am I just coding> > against the API incorrectly?> > > > Has anyone been able to find an Asynchronous implementation for SDP> > enquiries? even if its some form of threaded work around.> > actually D-Bus method calls are always asynchronous.> > Regards> > Marcel
Ok, I see.
 
Well, perhaps you can help me on an issue I've been having. At the moment I find myself having two problems, firstly, it appears that whenever I perform an SDP within the application on an adapter which is in the middle of an enquiry, the enquiry is terminated, is this usual behaviour? Should I perhaps be looking at using the periodic discovery (which i note is listed as non blocking) and then terminate it once I've acquired the devices I require?
 
The reason I'm after asynchronous behaviour in my SDP enquiry is that at present, if I have a device in the office such as one of the girls down at reception who is a long distance away then they're phone takes a long time to reply to an sdp request, resulting in the rest of my application having to wait upon its response and unable to do anything else like running SDP's on other devices. In an ideal world the application would continue through its processes able to perform service enquires on another device or two.
 
What would you suggest as the best way to implement that behaviour?
 
Thanks for your time Marcel,
 
Robert
_________________________________________________________________
Telly addicts unite!
http://www.searchgamesbox.com/tvtown.shtml

[-- Attachment #1.2: Type: text/html, Size: 2536 bytes --]

[-- Attachment #2: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-02-13 16:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <5d5443650802080456p78f33f07s3ec6ac4c4c1e789c@mail.gmail.com>
     [not found] ` <20080208141056.GZ24072@matthew.ath.cx>
     [not found]   ` <5d5443650802110839u2f12eb01j603dcc436085c84d@mail.gmail.com>
     [not found]     ` <20080211164102.GA8137@berrange.com>
     [not found]       ` <BAY102-W409DB55A6A242470BDB930F02B0@phx.gbl>
2008-02-13 16:25         ` [Bluez-devel] Asynchronous SDP With DBUS API Robert Rawlins
2008-02-13 16:30           ` Marcel Holtmann
2008-02-13 16:58             ` Robert Rawlins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox