Re: Bonjour server with multiple clients
Re: Bonjour server with multiple clients
- Subject: Re: Bonjour server with multiple clients
- From: "Michael Ash" <email@hidden>
- Date: Fri, 9 Jan 2009 23:51:55 -0500
On Fri, Jan 9, 2009 at 8:22 PM, Markus Spoettl
<email@hidden> wrote:
> On Jan 9, 2009, at 1:49 PM, Jim Correia wrote:
>>>
>>> I'm writing a simple voting app, where one instance of the app creates a
>>> poll and then publishes it over Bonjour. Other instances of the app on the
>>> same local network then find the publish poll, get the list of voting
>>> options, and then allow users at each computer to start submitting votes.
>>> The votes are sent back over the Bonjour connection, fed into a thread-safe
>>> queue, and the poll owner retrieves them at his leisure.
>>
>> Bonjour is for advertising and discovering services.
>>
>> "The votes are sent back over the Bonjour connection" doesn't make sense.
>> There is no such thing as a Bonjour connection. The client and server
>> communicate by whatever means they would have communicated without zeroconf.
>
>
> Apple's bonjour example (Picture Sharing
> http://developer.apple.com/samplecode/PictureSharing/index.html) seems to be
> demoing exactly what you say it doesn't do. Whether or not it's called
> "bonjour connection" or something else doesn't really matter.
It matters a great deal. Knowing that Bonjour has absolutely nothing
to do with making the actual connection is very important. Knowing
that allows you to eliminate all questions about NSNetService and
friends from your question of how to support multiple clients.
Bonjour is a billboard on the side of the highway. You can give it a
phone number to put up on the billboard, but it's entirely up to you
to actually set that phone number up with the phone company, attach
phones to it, and staff the place with smut-talking ladies. The
billboard company doesn't even check to see if your phone number goes
anyplace, much less control how many people can call in to your line
at once.
Mike
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden