• 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: Peer-to-Peer Ports
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Peer-to-Peer Ports


  • Subject: Re: Peer-to-Peer Ports
  • From: Jens Alfke <email@hidden>
  • Date: Sun, 28 Jun 2009 22:32:07 -0700


On Jun 28, 2009, at 9:57 AM, Gordon Apple wrote:

  Is there any complete package or sample code I can pilfer without
delving into the guts of the beast?

Try my MYNetwork library: http://bitbucket.org/snej/mynetwork
It implements a Cocoa API for messaging over TCP, including service discovery with Bonjour.



Eli Bach wrote:
p2p is a misnomer. Everything over the internet is client-server.
So-called p2p clients simply implement BOTH a client and a server. They also define how to find other p2p client's and the communication protocol.

That's not strictly true. In a true client-server protocol all messages are initiated by the client and answered by the server. There may be exceptions to this (as in XMPP) but there's a strong asymmetry between the two roles.


In a peer-to-peer protocol the two sides are equals and can perform the same operations. It doesn't matter which of them initiated the connection and which just listened for it; after the connection opens, messages go both directions.

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Gluing from NSNetService to FSMountServerVolumeSync()
  • Next by Date: select() not working with UDP
  • Previous by thread: RE: Peer-to-Peer Ports
  • Next by thread: select() not working with UDP
  • Index(es):
    • Date
    • Thread