Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-27-2008, 02:44 PM
Member
 
Join Date: Apr 2008
Location: Prague, CZE
Posts: 4
KamilR is on a distinguished road
Send a message via ICQ to KamilR
Decentralized chat
Hi, can anyone help mi to realize decentralized chat, i dont know how to start.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-28-2008, 06:48 AM
Zosden's Avatar
Senior Member
 
Join Date: Apr 2008
Posts: 218
Zosden is on a distinguished road
please explain more. provide some code or something
__________________
Definition of Impossible = making a good game in Java.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 04-28-2008, 09:58 AM
Member
 
Join Date: Apr 2008
Location: Prague, CZE
Posts: 4
KamilR is on a distinguished road
Send a message via ICQ to KamilR
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.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 04-28-2008, 10:00 AM
Zosden's Avatar
Senior Member
 
Join Date: Apr 2008
Posts: 218
Zosden is on a distinguished road
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
__________________
Definition of Impossible = making a good game in Java.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 04-28-2008, 11:19 AM
roots's Avatar
Moderator
 
Join Date: Jan 2008
Location: Dallas
Posts: 249
roots is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 05-05-2008, 08:27 AM
danielstoner's Avatar
Senior Member
 
Join Date: Apr 2008
Location: Canada
Posts: 133
danielstoner is on a distinguished road
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
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chat Applet in HTML Flynazn Java Applets 2 04-17-2008 05:11 PM
Help in Chat application zocky Networking 0 11-08-2007 08:19 PM
Java Program chat susan Advanced Java 1 07-25-2007 10:05 PM
123 Flash Chat 6.6 levent Java Announcements 0 06-05-2007 01:07 PM
Chat Client Jessi34 New To Java 4 05-31-2007 12:37 PM


All times are GMT +3. The time now is 10:56 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org