The project is like a broadcasting messenger, currently works on localhost only, but can be easily modified to work on the network. The chat clients can send messages that are stored on the server. The clients can see everything on the server by sending the update command.
The project has two parts.
- Server - no GUI, only one instance should be running
- Client - has a GUI, many instances can be executed. the commands "" updates the big text box in the client to the latest information form the server, the command "" disconnects from the server.
The clients connect to the server using sockets. One socket on the server can only connect to one client. To work around that, the client sends a randomly generated socket number to the server through a fixed socket (2010) on the server. The server then knows that it should connect to the client on that socket given by the client.
#BUILDING
- Add the swt.jar file appropriate for the platform to the build path before running the clients.
- For Mac, append the VM argument "-XstartOnFirstThread" to the Run Configurations dialog.
- auto-update, auto-broadcast, close on disconnect, etc.
- Add non-local server hosts.
Rahul Jiresal