Write a server and client programs that do the following based on the written pseudocode: Client Server Server creates a server socket on port 3344 Client create a socket that directed to port 3344, Server is capable to receive requests for more than one client at the same time.(threads) local host For each client, server creates a file named after Client sends a linked list object to the server containing n elements (size is given from user) generated randomly the threadID Server reads the list object and writes its content into the file created above Clients waits for the written confirmation from server , which is the number of elements found on the list object send above After writing, Server send number of elements written to the file to the client. Server closes sockets and files. Client check if number received is equal to the size of the list Client closes socket

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter17: Linked Lists
Section: Chapter Questions
Problem 18SA
icon
Related questions
Question
Write a server and client programs that do the following based on the written pseudocode:
Client
Server
Client create a socket that directed to port 3344,
local host
Server creates a server socket on port 3344
Server is capable to receive requests for more
than one client at the same time.(threads)
Client sends a linked list object to the server
For each client , server creates a file named after
containing n elements (size is given from user)
generated randomly
the threadID
Server reads the list object and writes its content
into the file created above
Clients waits for the written confirmation from
server , which is the number of elements found
on the list object send above
After writing, Server send number of elements
written to the file to the client.
Server closes sockets and files.
Client check if number received is equal to the
size of the list
Client closes socket
Transcribed Image Text:Write a server and client programs that do the following based on the written pseudocode: Client Server Client create a socket that directed to port 3344, local host Server creates a server socket on port 3344 Server is capable to receive requests for more than one client at the same time.(threads) Client sends a linked list object to the server For each client , server creates a file named after containing n elements (size is given from user) generated randomly the threadID Server reads the list object and writes its content into the file created above Clients waits for the written confirmation from server , which is the number of elements found on the list object send above After writing, Server send number of elements written to the file to the client. Server closes sockets and files. Client check if number received is equal to the size of the list Client closes socket
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Fundamentals of system reliability
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning