Check out example codes for "socket would block error c#". It will help you in understanding the concepts better.

Code Example 1

catch (SocketException e)
{
  if (e.SocketErrorCode != SocketError.WouldBlock)
    throw;
}

Learn ReactJs, React Native from akashmittal.com