#PB_Network_WouldBlock
Posted: Mon Nov 02, 2009 9:52 pm
If you want to do serious network tools, you will come very early to the conclusion, that you will need at least the WSAGetLastError_()-Api (now speaking for Windows).
If you send Files or other big, nasty things through your LAN, you will recognize a result of -1 of SendNetworkData() really often.
With pure purebasic, you don't have any idea, if now the others side buffer is full (#WSAEWOULDBLOCK) or has died.
At least one more possible Return-Value for SendNetworkData() would help a lot.
For example -1 = Something went really wrong; -2 = Buffer full, try again later...
If you send Files or other big, nasty things through your LAN, you will recognize a result of -1 of SendNetworkData() really often.
With pure purebasic, you don't have any idea, if now the others side buffer is full (#WSAEWOULDBLOCK) or has died.
At least one more possible Return-Value for SendNetworkData() would help a lot.
For example -1 = Something went really wrong; -2 = Buffer full, try again later...