Re: Peer-to-Peer Ports
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