Results 1 to 6 of 6
Thread: Decentralized chat
- 04-27-2008, 01:44 PM #1
Member
- Join Date
- Apr 2008
- Location
- Prague, CZE
- Posts
- 4
- Rep Power
- 0
- 04-28-2008, 05:48 AM #2
please explain more. provide some code or something
My IP address is 127.0.0.1
- 04-28-2008, 08:58 AM #3
Member
- Join Date
- Apr 2008
- Location
- Prague, CZE
- Posts
- 4
- Rep Power
- 0
I dont have any code, I have to do it, the basic is that chat doesn't have constantly server, when one client it join like first, that client will be server, when this client quit, next client will be turned to server.
- 04-28-2008, 09:00 AM #4
just do what I did with my instant messaging program. but in the run method when it calls the exception just have it make it a server socket instead of a client socket
My IP address is 127.0.0.1
- 04-28-2008, 10:19 AM #5
Few things comes in mind about such system. You need to have some sort of discovery system of the clients. User can keep the list of clients in local database and try to connect each until it gets a live client.
Clients can then coordinate with each other for the discovery. A general topology of p2p file sharing system will help.
Look for other ideas for the discovery
Once they are discovered .. a client can act both .. client as well as server with other peer ..dont worry newbie, we got you covered.
- 05-05-2008, 07:27 AM #6
No matter what you do you still need one or a few central places where to register potential servers and where clients can find the addresses of potential servers. Otherwise you have a chicken and egg problem.
Daniel @ [www.littletutorials.com]
Language is froth on the surface of thought
Similar Threads
-
Chat Client
By Jessi34 in forum New To JavaReplies: 5Last Post: 12-09-2009, 03:49 PM -
Chat Applet in HTML
By Flynazn in forum Java AppletsReplies: 3Last Post: 05-27-2008, 09:26 AM -
Help in Chat application
By zocky in forum NetworkingReplies: 0Last Post: 11-08-2007, 07:19 PM -
Java Program chat
By susan in forum Advanced JavaReplies: 1Last Post: 07-25-2007, 09:05 PM -
123 Flash Chat 6.6
By levent in forum Java SoftwareReplies: 0Last Post: 06-05-2007, 12:07 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks