Open
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.