This is another find in my workspaces!
Featuring this time a simple text based chat, based on a self-developed protocol allowing server client communication.
Features
- Simple text chat
- Multithreaded Server
- Singlethreaded Client
- fully swing compatible
- Status messages in chat window (disconnects, errors etc.)
- Overview list with all connected clients
- Possibility to private/ group chat
The first thing to do is to start the server. This is as easy as it sounds just clicking on the "Start" button and we can leave the server alone, handling itself all connections etc.
Next step is to initiate a Client connection to the server. This can be done by starting the Client Chat application. Here we just need to specify the server's IP Address and an appropriate nick name.
Now we can see that the main window is enabled and we can now start chatting by typing some words into the textfiled below this chat window. On the right side the chatter list appears showing only one entry, us. Let's now invitate more people to show all features!
Next persons will be Alice and Bobby:
Here we can see that "Bobby" successfully connected to the server and received a message from "Chris". Furthermore a private message was sent to him only readable of him from "Alice".
After "Bobby" connected "Alice" also joined the chat and received the message from "Chris". Then "Alice" sent a private message to "Bobby". This could be done by unchecking "Chris" from the chat overview list on the right side.
This picture shows the final result when the user "chris" disconnected after chatting with Alice and Bobby.
If you want to know more how the connection is handled then you should take a closer look at the ServerClientHandlerThread and the ClientConnectThread. The main rule plays the MessageObject which is used to determine the connected Clients and their behavior.
Download
Maven Project - with Source Code
chat.zip
Runnable Jars
Server: ChatServer.jar
Client: ChatClient.jar
This comment has been removed by the author.
ReplyDeletehey could not download your zip file. Pls mail me on rawat1605@gmail.com
ReplyDeleteI have read your blog its very attractive and impressive. I like it your blog.
ReplyDeleteJava Training in Chennai Java Training in Chennai | Core Java Training in Chennai
Java Training Institutes
ReplyDeleteNeeded to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here.
ReplyDeleteJava Training in Bangalore
Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with extra information? It is extremely helpful for me.
ReplyDeleteadult webcam chat
Awesome and interesting article. Great things you've always shared with us. Thanks. Just continue composing this kind of post.
ReplyDeletevr adult cam girls
Thanks for sharing this information its really nice.
ReplyDeletevibrators
Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work. live adult chat
ReplyDeleteVery informative post! There is a lot of information here that can help any business get started with a successful social networking campaign
ReplyDeletelive cams
I read that Post and got it fine and informative.
ReplyDeletelive cams
Hello I am so delighted I located your blog, I really located you by mistake, while I was watching on google for something else, Anyways I am here now and could just like to say thank for a tremendous post and a all round entertaining website. Please do keep up the great work. live cams
ReplyDeleteThis is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free. bongacam
ReplyDeleteThis is not just a mere piece of work. This is ART.
ReplyDeleteBase Chat Number
The information that you have shared was really very useful and looks great to see and thanks for sharing the information with us.
ReplyDeletewebsite builder for reseller
This was really an interesting topic and I kinda agree with what you have mentioned here! free chat rooms online
ReplyDeleteI was surfing the Internet for information and came across your blog. I am impressed by the information you have on this blog. It shows how well you understand this subject. chaturbat
ReplyDelete