I need help getting my project started. I want to finish it on my own but im not sure how to start it. I would appreciate some tips on what i need to complete it and make it work. I do not want you to complete the project as that is cheating and i wont learn that way. Thank You   The Server Must accept commands in the form: PUSH “filename” fileSize <<>>                 PUSH means that the client will be sending you a file. You need to store it with the filename sent. You must expect and require fileSize bytes. Respond to the client with “OK”. PULL “filename”                 PULL means that the client wants this file back.  Respond with the number of bytes (use stat()), and then send all of the bytes to the client. Then respond with “OK” (a different send()).   The server should take two parameters – the directory to work in and the port. The server should not shutdown. The server must have an accept() loop to allow multiple clients to connect (one at a time).

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter14: Files And Streams
Section: Chapter Questions
Problem 2CP: In Chapter 11, you created the most recent version of the MarshallsRevenue program, which prompts...
icon
Related questions
Question

I need help getting my project started. I want to finish it on my own but im not sure how to start it. I would appreciate some tips on what i need to complete it and make it work. I do not want you to complete the project as that is cheating and i wont learn that way. Thank You

 

The Server

Must accept commands in the form:

PUSH “filename” fileSize <<<bytes>>>

                PUSH means that the client will be sending you a file. You need to store it with the filename sent. You must expect and require fileSize bytes. Respond to the client with “OK”.

PULL “filename”

                PULL means that the client wants this file back.  Respond with the number of bytes (use stat()), and then send all of the bytes to the client. Then respond with “OK” (a different send()).

 

The server should take two parameters – the directory to work in and the port. The server should not shutdown. The server must have an accept() loop to allow multiple clients to connect (one at a time).

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Linux
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
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT