diff --git a/ixwebsocket/IXUdpSocket.cpp b/ixwebsocket/IXUdpSocket.cpp index 5c753946..d1248282 100644 --- a/ixwebsocket/IXUdpSocket.cpp +++ b/ixwebsocket/IXUdpSocket.cpp @@ -76,7 +76,7 @@ namespace ix #ifdef _WIN32 unsigned long nonblocking = 1; - ioctlsocket(sockfd, FIONBIO, &nonblocking); + ioctlsocket(_sockfd, FIONBIO, &nonblocking); #else fcntl(_sockfd, F_SETFL, O_NONBLOCK); // make socket non blocking #endif