Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Inductive Databases And Constraint Based Data Mining

Authors: Saso Dzeroski ,Bart Goethals ,Pance Panov

2010th Edition

1489982175, 978-1489982179

More Books

Students also viewed these Databases questions