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.
- 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.
Maven Project - with Source Code
This comment has been removed by the author.ReplyDelete
Great Article android based projectsDelete
Java Training in Chennai
Project Center in Chennai
Java Training in Chennai
projects for cse
The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training
hey could not download your zip file. Pls mail me on email@example.comReplyDelete
Java Training Institutes in Chennai Java Training in ChennaiReplyDelete
I have read your blog its very attractive and impressive. I like it your blog.ReplyDelete
Java Training in Chennai Java Training in Chennai | Core Java Training in Chennai
Online Java Training Java 8 Online Training | Java J2EE Online Training | JavaEE Training Institute in ChennaiReplyDelete
Java Training InstitutesReplyDelete
Java Training Institutes Java Training Institutes Java EE Training in Chennai Java EE Training in Chennai Java Spring Hibernate Training Institutes in Chennai J2EE Training Institutes in Chennai J2EE Training Institutes in Chennai Core Java Training Institutes in Chennai Core Java Training Institutes in ChennaiReplyDelete
Java Online Training Java Online Training Java Online Training Java Online Training Java Online Training Java Online Training
Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here.ReplyDelete
Java 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.ReplyDelete
adult webcam chat
Awesome and interesting article. Great things you've always shared with us. Thanks. Just continue composing this kind of post.ReplyDelete
vr adult cam girls
Thanks for sharing this information its really nice.ReplyDelete
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 chatReplyDelete
Very informative post! There is a lot of information here that can help any business get started with a successful social networking campaignReplyDelete
I read that Post and got it fine and informative.ReplyDelete
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 camsReplyDelete
This 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. bongacamReplyDelete
This is not just a mere piece of work. This is ART.ReplyDelete
Base Chat Number
Thank you for the link building list.I am going jot down this because it will help me a lot.Great blog! Please keep on posting such blog.ReplyDelete
private label website builder
Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.ReplyDelete
white label website builder
The information that you have shared was really very useful and looks great to see and thanks for sharing the information with us.ReplyDelete
website builder for reseller
This was really an interesting topic and I kinda agree with what you have mentioned here! free chat rooms onlineReplyDelete
I 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. chaturbatReplyDelete
Great Post, Thanks for sharing such a wonderful information.ReplyDelete
Java Online Training
Java Online Training In Chennai
Core Java Online Training