Browse Source

Fix

pass-iguana-arg
jl777 7 years ago
parent
commit
992200cbd9
  1. 4
      iguana/exchanges/LP_socket.c

4
iguana/exchanges/LP_socket.c

@ -28,8 +28,8 @@
int32_t set_blocking_mode(int32_t sock,int32_t is_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_t set_blocking_mode(int32_t sock,int32_t is_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
{ {
bool ret; int32_t ret;
#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
u_long non_blocking = is_blocking ? 0 : 1; u_long non_blocking = is_blocking ? 0 : 1;

Loading…
Cancel
Save