(svn r8673) -Codechange: use SetNonBlocking instead of implementing yet another version.

This commit is contained in:
rubidium
2007-02-11 13:39:23 +00:00
parent 7ee3fc4979
commit b71d6e1401
2 changed files with 3 additions and 11 deletions

View File

@@ -153,7 +153,7 @@ typedef unsigned long in_addr_t;
# endif
#endif // __MORPHOS__ || __AMIGA__
static inline bool SetNonBlocking(const int d)
static inline bool SetNonBlocking(SOCKET d)
{
#ifdef WIN32
u_long nonblocking = 1;
@@ -167,7 +167,7 @@ static inline bool SetNonBlocking(const int d)
#endif
}
static inline bool SetNoDelay(const int d)
static inline bool SetNoDelay(SOCKET d)
{
/* XXX should this be done at all? */
#if !defined(BEOS_NET_SERVER) // not implemented on BeOS net_server