944,022 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 10653
  • Java RSS
May 17th, 2006
0

help me to create a java chat server

Expand Post »
hi
can any one give me a code for chatserver in java which have bi-directional comminication.lik server listen more no.of clients n give reply and client mak request to server. ther should be a frame where a textarea and a textfield.all messages are printed on textarea and after hit of return key from keybord the textfield area will blank.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
itsukumar is offline Offline
2 posts
since Apr 2006
May 17th, 2006
0

Re: help me to create a java chat server

Check this
Reputation Points: 48
Solved Threads: 7
Posting Whiz
aniseed is offline Offline
353 posts
since Apr 2006
May 18th, 2006
0

Re: help me to create a java chat server

I've pretty much decided my next project after I submit my SCJD work will be to create a complete IRC server in Java.
I might even release the source after it's done, but it will likely take a few years until it's fully functional unless I bring others on board to assist in the project.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
May 20th, 2006
0

Re: help me to create a java chat server

There is a briliant tutorial in Deitel&Deitel book Programming in Java Sixth Edition somewhere around cahpter 23-24
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 874
Code tags enforcer
peter_budo is offline Offline
6,658 posts
since Dec 2004
May 21st, 2006
0

Re: help me to create a java chat server

The biggest problem is multithreading. If you want to use it with a GUI then you'll most certainly have to use multithreading. I made a really crappy one a while back just as a console application, because the multithreading got to be a pain.
Reputation Points: 113
Solved Threads: 19
Postaholic
server_crash is offline Offline
2,108 posts
since Jun 2004
May 21st, 2006
0

Re: help me to create a java chat server

the tutorial which i mentioned has multithreading. It is starting from simple window to window messaging and than they explain advance technics which include multithreading
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 874
Code tags enforcer
peter_budo is offline Offline
6,658 posts
since Dec 2004
May 21st, 2006
0

Re: help me to create a java chat server

for the server you ALWAYS have to use multithreading
For the client as well really, else you either can never enter any text yourself or won't get anything back until you do.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: help
Next Thread in Java Forum Timeline: Newbie in java





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC