• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Bonjour server with multiple clients
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bonjour server with multiple clients


  • Subject: Re: Bonjour server with multiple clients
  • From: Jim Correia <email@hidden>
  • Date: Fri, 9 Jan 2009 23:36:17 -0500

On Jan 9, 2009, at 8:22 PM, Markus Spoettl 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.

Bonjour is for advertising and discovering services.

If you remove all the Bonjour code from that sample and connect directly, it still works.

How does one go about advertising a service via bonjour like in the Picture Sharing example AND allow multiple connections instead of just one? Is it as simple as creating multiple listeningSockets? Or create a new listening socket each time you get a connection to the existing one?

The Picture Sharing sample does support multiple connections. (But as written, the connections are short lived - just long enough to send the picture data back to the client.)


Jim

_______________________________________________

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


References: 
 >Bonjour server with multiple clients (From: Dave DeLong <email@hidden>)
 >Re: Bonjour server with multiple clients (From: Jim Correia <email@hidden>)
 >Re: Bonjour server with multiple clients (From: Markus Spoettl <email@hidden>)
 >Re: Bonjour server with multiple clients (From: "Kyle Sluder" <email@hidden>)
 >Re: Bonjour server with multiple clients (From: Markus Spoettl <email@hidden>)

  • Prev by Date: accessing ivars in - (id)init
  • Next by Date: Re: accessing ivars in - (id)init
  • Previous by thread: Re: Bonjour server with multiple clients
  • Next by thread: Re: Bonjour server with multiple clients
  • Index(es):
    • Date
    • Thread