Link to home
Start Free TrialLog in
Avatar of Pieter Marais
Pieter MaraisFlag for South Africa

asked on

P2P Networking Explanation

Hi there,

I'm currently on a project where I need to send files and chat messages to users connected via the internet. The running enviroment is Apple Mac(Snow Leopard,Lion). Development environment is Objective C.

I figured that I'll probably will need to use some kind of P2P service, but I can't seem to find one that has an API or libraries for objective c. Chances are I'll have to setup my own P2P server.

As I understand it, the flow of how things is actually going to run, is like this:

Client 1 creates a "chat room"
Client 1 sends this information to the P2P server
Client 2 connects to the P2P server to check for chatrooms
P2P server sends Client 1's chatroom information to Client 2
Client 2 connects to Client 1's chat room (Directly?)

At this point file sharing and chatting should be possible.

Now, my issue is that I know that the above aproach is incorrect. Can anyone give me a more accurate , detailed description on how this would play out?
ASKER CERTIFIED SOLUTION
Avatar of marine7275
marine7275
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Pieter Marais

ASKER

Hi there,

Thanks for your input. I have decided to use a Jabber server, in specific, eJabber. Now I am looking for a Library in Objective C that I can use to communicate with the server, but that is something for another time.

Regards,
EZFrag
The suggestions managed to eventually point me in the direction of eJabber