Re: Bonjour server with multiple clients
Re: Bonjour server with multiple clients
- Subject: Re: Bonjour server with multiple clients
- From: "Kyle Sluder" <email@hidden>
- Date: Fri, 9 Jan 2009 20:38:00 -0500
On Fri, Jan 9, 2009 at 8:22 PM, Markus Spoettl
<email@hidden> wrote:
> 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.
The first thing you see when you open up PicSharingController.m in
that example is the following:
-----
- (IBAction)toggleSharing:(id)sender {
uint16_t chosenPort;
if(!listeningSocket) {
// Here, create the socket from traditional BSD socket calls,
and then set up an NSFileHandle with
//that to listen for incoming connections.
-----
So the actual communication between clients has nothing to do with
Bonjour. Bonjour just advertises to other machines "hey I'm listening
for picture sharing on this socket!" As Jim said, the notion of a
"Bonjour connection" is flawed because of how the protocol works.
--Kyle Sluder
_______________________________________________
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