int32_tset_blocking_mode(int32_tsock,int32_tis_blocking)// from https://stackoverflow.com/questions/2149798/how-to-reset-a-socket-back-to-blocking-mode-after-i-set-it-to-nonblocking-mode?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
int32_tset_blocking_mode(int32_tsock,int32_tis_blocking)// from https://stackoverflow.com/questions/2149798/how-to-reset-a-socket-back-to-blocking-mode-after-i-set-it-to-nonblocking-mode?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
{
{
boolret=true;
boolret;
#ifdef WIN32
#ifdef WIN32
/// @note windows sockets are created in blocking mode by default
/// @note windows sockets are created in blocking mode by default
// currently on windows, there is no easy way to obtain the socket's current blocking mode since WSAIsBlocking was deprecated
// currently on windows, there is no easy way to obtain the socket's current blocking mode since WSAIsBlocking was deprecated