Click here to Skip to main content
15,898,374 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all...,
I am trying to develop a chat application using remoting in C# in .Net 2.0.I need in my application, multiple clients chat with each other.(i.e,'n' clients at a time.).
Can anybody tell me what is the role of Server in this case?

Thanks
Posted

1 solution

You have two options:

1. The server should just arrange the the client connection setup (ie the information the clients need to open connection with eachother) so they can talk peer to peer. Doing this keeps the load off your server. Skype works like this I think
2. The clients chat to the server, and the server pushes the messages down to the client. This is easier to implement, but response times are slower and the load is on the server.

In either case, the server must also centralise the administration of who has joined and left the session, so that the clients know who is availble and send messages accordingly in the case of architecture 1.

As a final note, I suggest you look at getting hold of a newer version of the framework. WCF is possibly useful.
 
Share this answer
 
Comments
bvtoms 5-Aug-10 3:38am    
Hi.. Keith Barrow,
Thank u very much.
Can you give me sample links?
Keith Barrow 6-Aug-10 4:53am    
No problem with the help. I can't give you sample links I'm afraid, I've never written one of these and the people who have will probably want to keep their code secret. If you google, you might find an open source chat client.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900