954,193 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

chat program

Hi everyone

I have to write client/server client/client chat program for at least three machines(users) connected together to chat using java
My questions are
1. Do i need to have a server installed ina one of the machines.
2. Do i have to run the server side onf the application on the server or can i jusr run either(i.e the client application and the server applcation) on any machine

thanks.

qwest21
Newbie Poster
12 posts since Oct 2006
Reputation Points: 10
Solved Threads: 0
 

That is a pure personal choice design question. If it is going to be local intranet anyway, you could do simple multicast and let each "client" receive and broadcast the messages themselves, without any kind of a server.

masijade
Industrious Poster
Moderator
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
 

thanks alot let me try that

qwest21
Newbie Poster
12 posts since Oct 2006
Reputation Points: 10
Solved Threads: 0
 
thanks alot let me try that

mate get copy of Deitel & Deitel JAVA How to Program 6th Edition and look up chapter 24 Case Study (but don't try to cheat your teach will know it :twisted: )

peter_budo
Code tags enforcer
Moderator
15,435 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 901
 

Or any of a lot of others. This is a very common example of the networking capabilities of Java used in many programming courses either as an assignment or as a case study.

The fun is figuring it out yourself rather than taking some ready made solution and trying to make it look like something you made yourself ;)

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

hello peter ..
this side jeet..
peter actully write now i am working on chatting programe.. so i need help about it ...if u have a script related chatting using java.... frowarded me ..
thannx..........

JeetRaj
Newbie Poster
10 posts since Mar 2008
Reputation Points: 7
Solved Threads: 2
 

no, we're not going to do your homework for you, thread hijacking homework kiddo.

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 
hello peter .. this side jeet.. peter actully write now i am working on chatting programe.. so i need help about it ...if u have a script related chatting using java.... frowarded me .. thannx..........


As per me original post, get your hands on the book and learn how to do it. Besides I do not have any scripts, but I had long time ago code examples from that book. You can actualy get examples if you register with deitel website. However without book explanation they are useless for beginner and your teacher will find it out

peter_budo
Code tags enforcer
Moderator
15,435 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 901
 

I have to write client/server client/client chat program for at least three machines(users) connected together to chat using java.......
i want the coding guys... please help.....

thirukeshav
Newbie Poster
1 post since Sep 2010
Reputation Points: 7
Solved Threads: 0
 

:sigh: No. Closing this zombie now.

masijade
Industrious Poster
Moderator
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You