simple client server chat example online with Winfy
We have hosted the application simple client server chat example in order to run this application in our online workstations with Wine or directly.
Quick description about simple client server chat example:
This project is a demonstration example on multi-threading programming in Java (old school) and network programming (String exchanges over network).The multi-threading part aims to show how to avoid blocking methods by putting them in separate thread, therefor, the ExecutorService was not used. Two Runnable interfaces are available in the server and the client to show how the dialog is managed.
The Socket part aims to show how simple communication using TCP/IP are quite simple. The system shows how to exchange and process String over network. This is not sufficient when talking about large applications, but, let's not forget that HTTP uses Strings.
The project contains both the Server and the Client. The main method in the Main class does nothing. You must launch the Server (ServerMain) and several instances (or just one) of the Client (ClientMain).
To deconnect a client just send "exit".
Features:
- Multi-threading
- Socket programming
- Chat system
- Broadcast approach
Audience: Developers, Other Audience.
User interface: Non-interactive (Daemon), Console/Terminal.
Programming Language: Java.
.
©2024. Winfy. All Rights Reserved.
By OD Group OU – Registry code: 1609791 -VAT number: EE102345621.