This is the Linux app named Simple Client Server Chat Example whose latest release can be downloaded as SimpleClientServer.jar. It can be run online in the free hosting provider OnWorks for workstations.
Download and run online this app named Simple Client Server Chat Example with OnWorks for free.
Follow these instructions in order to run this app:
- 1. Downloaded this application in your PC.
- 2. Enter in our file manager https://www.onworks.net/myfiles.php?username=XXXXX with the username that you want.
- 3. Upload this application in such filemanager.
- 4. Start the OnWorks Linux online or Windows online emulator or MACOS online emulator from this website.
- 5. From the OnWorks Linux OS you have just started, goto our file manager https://www.onworks.net/myfiles.php?username=XXXXX with the username that you want.
- 6. Download the application, install it and run it.
Simple Client Server Chat Example
DESCRIPTION:
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
This is an application that can also be fetched from https://sourceforge.net/projects/simple-client-server/. It has been hosted in OnWorks in order to be run online in an easiest way from one of our free Operative Systems.