Skip to content

Conversation

@Abilaash01
Copy link

This is the finalized draft of Assignment 1 containing all the requested classes and modified classes. Inside the directory of simplechat2 contains a word document displaying what the chat-server looks like when performing each of the test cases. Take note however that some of the test cases are not included. That is because at the moment I do not have a working second or third computer that has the jdk software to run the program. The current test cases provided do show how efficient and clean the server and client consoles look.

…ell as changing the initialization of the ChatClient in the constructor method to include the loginID. Finally, the port and host initialization in the min method was modified to receive input from the user considering that port is entered after loginID and host is entered after port in that order.
…ientDisconnected methods were implemented. The handleMessageFromClient method was modified to detect when users login for the first time or anytime after that and stores their information for later use. loginID was also created to be used to reference the loginID of individual clients when receiving their data.
…connect without correct port, if they do not include loginID, and if they provide both successfully. handleMessageFromClientUI was modified to perform a specific set of instructions whenever a client enters a certain command. connectionClosed and connectionException were implemented to behave accordingly when client disconnects from server or is forced to disconnect for any reason.
… specific tasks when needed to. It contains the main method from the EchoServer which was moved to this class. This file behaves similarly to the ClientConsole in terms of receiving input. HandleMessageFromServer is a method created to do specific tasks when a certain command is entered by the user or it echoes a message to all clients connected to the server. The get method returns the EchoServer which is created when the ServerConsole starts runningso it can use the EchoServer to connect to AbstractServer so certain methods from the ocsf framefork can be used when implementing this class.
…1 directory so that the java files in Echoserver can refer back to the ocsf framework when calling upon those methods in it.v
…the simplechat2 testcase file. However, some testcases specifically those requiring multiple computers are not included since a working computer running a compatible jdk software was not available at the time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant