Question
In this assignment the server waits for clients to connect, accepts a connection, sends the accio command, afterwards receives confirmation, sends the accio command again,
In this assignment the server waits for clients to connect, accepts a connection, sends the accio command, afterwards receives confirmation, sends the accio command again, receives the second confirmation, and then receives binary file that client sends, counts the number of bytes received, and prints it out as a single number (number of bytes received not including the header size). Below i have provided the server and client files. Can someone explain why maybe i am failing these failed test cases(This is specefically for the server code)?
Failed Tests
9. Server aborts connection and prints ERROR when it does not receive data from client for more than 10 seconds (0.0/5.0)
10. Server accepts another connection after the first connection timed out (0.0/5.0)
11. Server successfully receives a small amount of data (~500 bytes) using the client (0.0/10.0)
12. Server prints the correct value for the received data from the previous test (0.0/10.0)
13. Server successfully receives a large amount of data (~10 MiBytes) using the client (without emulated delays and/or transmission errors) (0.0/10.0)
14. Server prints the correct value for the received data from the previous test (0.0/10.0)
15. Server successfully receives a large amount of data (~10 MiBytes) using the client (with emulated delays and/or transmission errors) (0.0/5.0)
16. Server prints the correct value for the received data from the previous test (0.0/5.0)
Client.py Server.py
mport sys mport socket command line argument python 3 server-s. pyStep 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