SetBlockingMode Blocking is on by default. But it may be turned off. If ansync functions are used then blocking is automatically turned off. When blocking is on certain functions will not return until they have performed their function or time-out. These include - sending functions, receiving functions and connecting function. Params mode - CUT_BLOCKING
| 1367 | UTE_SUCCESS - success |
| 1368 | ****************************************************/ |
| 1369 | int CUT_WSClient::SetBlockingMode(int mode){ |
| 1370 | |
| 1371 | unsigned long lmode = mode; |
| 1372 | |
| 1373 | if(ioctlsocket(m_socket,FIONBIO,&lmode) == SOCKET_ERROR) |
| 1374 | return OnError(UTE_ERROR); |
| 1375 | |
| 1376 | m_nBlockingMode = mode; |
| 1377 | return OnError(UTE_SUCCESS); |
| 1378 | } |
| 1379 | |
| 1380 | /*************************************************** |
| 1381 | GetBlockingMode |
nothing calls this directly
no outgoing calls
no test coverage detected