Results 1 to 6 of 6
  1. #1
    KamilR is offline Member
    Join Date
    Apr 2008
    Location
    Prague, CZE
    Posts
    4
    Rep Power
    0

    Default Decentralized chat

    Hi, can anyone help mi to realize decentralized chat, i dont know how to start.

  2. #2
    Zosden's Avatar
    Zosden is offline Senior Member
    Join Date
    Apr 2008
    Posts
    384
    Rep Power
    7

    Default

    please explain more. provide some code or something
    My IP address is 127.0.0.1

  3. #3
    KamilR is offline Member
    Join Date
    Apr 2008
    Location
    Prague, CZE
    Posts
    4
    Rep Power
    0

    Default

    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.

  4. #4
    Zosden's Avatar
    Zosden is offline Senior Member
    Join Date
    Apr 2008
    Posts
    384
    Rep Power
    7

    Default

    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

  5. #5
    roots's Avatar
    roots is offline Moderator
    Join Date
    Jan 2008
    Location
    Dallas
    Posts
    293
    Rep Power
    7

    Default

    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.

  6. #6
    danielstoner's Avatar
    danielstoner is offline Senior Member
    Join Date
    Apr 2008
    Location
    Canada
    Posts
    191
    Rep Power
    7

    Default

    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

  1. Chat Client
    By Jessi34 in forum New To Java
    Replies: 5
    Last Post: 12-09-2009, 03:49 PM
  2. Chat Applet in HTML
    By Flynazn in forum Java Applets
    Replies: 3
    Last Post: 05-27-2008, 09:26 AM
  3. Help in Chat application
    By zocky in forum Networking
    Replies: 0
    Last Post: 11-08-2007, 07:19 PM
  4. Java Program chat
    By susan in forum Advanced Java
    Replies: 1
    Last Post: 07-25-2007, 09:05 PM
  5. 123 Flash Chat 6.6
    By levent in forum Java Software
    Replies: 0
    Last Post: 06-05-2007, 12:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •