Only username is required, and will be prompted for one if one is not entered.
Default port for both programs is set to 20600. Default G set to 1019 Deafult N set to 1823
This is a multithreaded client/server program.
Many clients can connect to one server, and contents of their chat in a chat room is stored with in a chat file which is created if a user joins an empty chat room, displays to all users when they join, and deletes if they're the last one to leave.
This project runs a client and server program and connets the two given a port name, host name, and username. This version is multi threaded, so the server can accept multiple clients.
To Compile: javac TCPServerMT.java javac TCPClientMT.java
To Run: Basic run with defualt everything: java TCPServerMT java TCPClientMT
To Run with set variables java TCPServerMT -p (Port Number) -g (Varible used in encryption) -n (Varible used in encryption) java TCPClient -p (Port Number) -h (Host Name) -u (Username)
Used to help convert milliseconds into hours, minutes, and seconds:
Basis of my Diffie-Hellman:
https://www.geeksforgeeks.org/implementation-diffie-hellman-algorithm/
G & N are not properly computed
All clients use the same key
Extremely large numbers have trouble processing