X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fnet%2Fwindows%2Fsocket.cpp;h=07db95d1f7dd928ab357d645754a05d4b899a6b4;hb=cc2e643d6ec3025db3fb6f0a4c1f77af05cf1026;hp=f4fab44c478d491f0677b333dfc26a853113be78;hpb=88bbb4039aa274c7f41ebe3a18085b63427e5475;p=libs%2Fnet.git diff --git a/source/net/windows/socket.cpp b/source/net/windows/socket.cpp index f4fab44..07db95d 100644 --- a/source/net/windows/socket.cpp +++ b/source/net/windows/socket.cpp @@ -1,11 +1,13 @@ -#include #include "platform_api.h" +#include "socket.h" +#include #include #include #include "sockaddr_private.h" -#include "socket.h" #include "socket_private.h" +using namespace std; + namespace { class WinSockHelper @@ -70,6 +72,10 @@ void Socket::Private::set_block(bool b) ioctlsocket(handle, FIONBIO, &flag); } +void Socket::Private::set_inherit(bool) +{ +} + int Socket::Private::set_option(int level, int optname, const void *optval, socklen_t optlen) { return setsockopt(handle, level, optname, reinterpret_cast(optval), optlen); @@ -81,7 +87,7 @@ int Socket::Private::get_option(int level, int optname, void *optval, socklen_t } -unsigned check_sys_error(int ret, const char *func) +size_t check_sys_error(make_signed::type ret, const char *func) { if(ret<0) {