WSCAGAIN couldn't understand editorial

Hi, problem link:

I am not able to understand editorial.

Please anyone help…

At least pseudo code…please