Skip to content

UBC-CS410/PublicMessenger

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

  1. Server - no GUI, only one instance should be running
  2. 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

  1. Add the swt.jar file appropriate for the platform to the build path before running the clients.
  2. For Mac, append the VM argument "-XstartOnFirstThread" to the Run Configurations dialog.

TODO

  • auto-update, auto-broadcast, close on disconnect, etc.
  • Add non-local server hosts.

AUTHOR

Rahul Jiresal

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%