From b71d6e14013d237feeb69367a0e978c7622a813b Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 11 Feb 2007 13:39:23 +0000 Subject: (svn r8673) -Codechange: use SetNonBlocking instead of implementing yet another version. --- src/network/core/udp.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/network/core/udp.cpp') diff --git a/src/network/core/udp.cpp b/src/network/core/udp.cpp index cc83577ef..45ed287c1 100644 --- a/src/network/core/udp.cpp +++ b/src/network/core/udp.cpp @@ -33,15 +33,7 @@ bool NetworkUDPSocketHandler::Listen(const uint32 host, const uint16 port, const 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 */ -- cgit v1.2.3-54-g00ecf