Question: def unpack _ ack _ message ( self , bytes ) : Unpack an ack message from the server. The ACK message
def unpackackmessageself bytes:
Unpack an ack message from the server. The ACK message from the server uses the following format:
ACKtype unsigned byte a indicates that everything is normal. We don't really use this
field in this protocol
nextchunknumber unsigned int
Parameters:
bytes: the ACK message received from the server
Returns:
ACKtype: the value of the ACKtype field
nextchunknumber: the number of the next desired chunk
acktype, nextchunknumber struct.unpackBI bytes
return acktype, nextchunknumber. Fix the function for this error: Failed to send file: unpack requires a buffer of bytes
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
