diff -r 5daa58eb1e0a -r af5c8ffc42e3 src/network/core/udp.cpp --- a/src/network/core/udp.cpp Sun Feb 11 10:30:54 2007 +0000 +++ b/src/network/core/udp.cpp Sun Feb 11 13:39:23 2007 +0000 @@ -33,15 +33,7 @@ return false; } - /* set nonblocking mode for socket */ - { - unsigned long blocking = 1; -#ifndef BEOS_NET_SERVER - ioctlsocket(this->sock, FIONBIO, &blocking); -#else - setsockopt(this->sock, SOL_SOCKET, SO_NONBLOCK, &blocking, NULL); -#endif - } + SetNonBlocking(this->sock); sin.sin_family = AF_INET; /* Listen on all IPs */