In this assignment, you'll write two clients (both essentially identical) that will communicate with a server that
Question:
In this assignment, you'll write two clients (both essentially identical) that will communicate with a server that you will also write. On start-up, each client will print out a string saying: "Client _ of Joan A. Smith" where _ will be either A or B. Your two clients, A and B, will then open a TCP socket to your server and send a message (a string of characters) to your server containing the string "100 Hello". The server will accept connections from your clients and after it has received messages from both A and B will print their messages and then (only after having received messages from both clients) it will send a message ("105 Candidates str1 str2") back to your clients. Str1 and str2 will be two strings with the first names of two candidates. At each client the user will then be prompted for a candidate to select. After the user selects that client, the string "110 Vote str" will be sent back to the server, where str will be the name of the candidate chosen. The server will then increment the number of votes for the appropriate candidate.
Auditing a business risk appraoch
ISBN: 978-0324375589
6th Edition
Authors: larry e. rittenberg, bradley j. schwieger, karla m. johnston