Skip to content

A simple client-server messaging service with support for P2P messaging

Notifications You must be signed in to change notification settings

beatzunknown/comp3331-assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

COMP3331 Client-Server Messaging System

About

The aim was to develop a client and server for an instant messaging system that operated on top of TCP. The clients are also able to initialise P2P private messaging with other clients that bypass the server.

Compilation

Compile the client with

javac Client.java

and compile the server with

javac Server.java

Execution

Note that fields in angled brackets are variables to be set by yourself. Description of parameters:

  • server_port: the port you wish to run the server on
  • server_IP: the IP address of the machine the server is running on
  • block_duration: the time (in seconds) where a user should be prevent from logging in, after 3 failed attempts
  • timeout: the time (in seconds) which a user must be inactive for before they are automatically logged out

Executing the server:

java Server <server_port> <block_duration (seconds)> <timeout (seconds)>

Executing the client:

java Client <server_IP> <server_port>

About

A simple client-server messaging service with support for P2P messaging

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages