Question: C++ Program Description: This homework will simulate encrypted communication between two clients, who are connected via a server. There will be four classes required in
C++
Program Description: This homework will simulate encrypted communication between two clients, who are connected via a server. There will be four classes required in total. This means you will need to turn in 9 files server.h, server.cpp, client.h, client.cpp, messageServer.h, messageServer.cpp, encodedServer.h, encodedServer.cpp, main.cpp. The functions that are include here are the absolutely necessary functions. You can add additional functions if you need to in order to fulfill requirements. That is, a server function that returns the id of the sender or the id of the receiver. On the right, a graphical representation to see how the four classes will interact.





Server Client Protected: *sender *reciever Private: id message posseskey key[26] Public: establishConnection(client, clinet) = 0 sendMessage(string) = 0 swapClients) Public: client() client(int) getiDO setID(int) getMessage() setMessage(string) setPossesKey(bool) decode(string) encodedServer messageServer E Private: key[26] Public: messageServer) establishConnection(client, client) sendMessage(sting) E Public: encodedServer) establishConnection(client, client) sendMessage(string) encodeMessage Server Client Protected: *sender *reciever Private: id message posseskey key[26] Public: establishConnection(client, clinet) = 0 sendMessage(string) = 0 swapClients) Public: client() client(int) getiDO setID(int) getMessage() setMessage(string) setPossesKey(bool) decode(string) encodedServer messageServer E Private: key[26] Public: messageServer) establishConnection(client, client) sendMessage(sting) E Public: encodedServer) establishConnection(client, client) sendMessage(string) encodeMessage
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
