On Jul 30, 2009, at 8:13 PM, Sven-S. Porst wrote:

It's not for discovery.  It's internal DO machinery from
NSSocketPortNameServer, as Christiaan said, and it lets you connect
over an NSPort by knowing only the service name and hostname.  Your
alternative would be vending it over a hard-coded TCP port number,
according to the documentation.


I'm not sure I understand this (Bonjour _is_ for discovery, yet this
use of it isn't?)

That's not really correct, though which part is not correct depends on what you mean with "discovery". BD names the second port by a given name, so the client can find it back by that name (and standard type). I would call that discovery, and it certainly is done using Bonjour.

but it seems that this is a quirk of Apple's
implementation rather than a BibDesk issue.


It also seems like BibDesk is the only application I have that uses
Distributed Objects at all, as I haven't seen those NSSocketPort
Bonjour advertisements otherwise.

                Sven

We're not saying that you need two ports to have bonjour with DO, we say that we don't know how to do it with one ;-) I do think it should be possible to have it with only one port. One of the problems is that NSSocketPortNameServer (which is used for the second port) only seems to work with the standard type, and also NSSocketPort is somewhat limited (AFAIK it can't handle just any BSD socket port). However, the browsable netservice uses a special registered type (_bdsk).

Christiaan

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Bibdesk-develop mailing list
Bibdesk-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-develop

Reply via email to