MCPcopy Create free account
hub / github.com/ashkulz/NppFTP / SetBlockingMode

Method SetBlockingMode

UTCP/src/ut_clnt.cpp:1369–1378  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1367 UTE_SUCCESS - success
1368****************************************************/
1369int 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/***************************************************
1381GetBlockingMode

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected