[Lab3] Solutions to bonus part

[Lab3] Solutions to bonus part

by Wenkai Li -
Number of replies: 2

Hi,

In Lab3 bonus part Q1 and Q2, it asks How many time was the function recv() called ?  and the solution is 10 and 1 respectively. 

I think strictly speaking it should be 11 and 2, because recv() actually needs to be called one more time for socket to know there is no more data from the server. What do you think? 

Best,


In reply to Wenkai Li

Re: [Lab3] Solutions to bonus part

by Ludovic Thomas -

Dear Wenkai,

I understand and agree with your argument.
10 and 1 is also a correct answer for those that used the on_message event (only called when a message is received).

I updated the bonus quiz on Moodle, will change the solution pdf and the "lab3 research exercise" grades in the coming days.

Best,
Ludovic

In reply to Ludovic Thomas

Re: [Lab3] Solutions to bonus part

by Wenkai Li -
Thank you for the quick update! Have a nice evening:)

Best,