Question
Write a program in python that does the following: We will create a local server and client on our machines that will take a single
Write a program in python that does the following:
We will create a local server and client on our machines that will take a single text file from a directory provided by the user and transfer that file over to a client that is requesting the file.
You will create 2 new files with the following details:
Client Module
The client will prompt the user for a text file ".txt" that it wants to receive and the directory where that file is located.
Using the user input, the client will request a copy of the file from the server
The client will wait for the file transfer from the server
The client will store the file in a folder called "Client Folder" which is to be created in the same directory as the py files.
Server Module
The server will accept incoming connections from a client
The server will take a filename and directory from the client and send the data over to the client requesting the file
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started