X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fnet%2Fstreamsocket.cpp;h=1dab2e3aba39ebbcc77bbb5b7927ddcc7f7b654a;hb=dd8b0e7471bb85d26cc63da2f0819ceeff30550f;hp=8a262454eca173dfcc6ef93f0fcd0d45c10582f7;hpb=debe1004676d5431e571d9c4361072661dcc88c4;p=libs%2Fnet.git diff --git a/source/net/streamsocket.cpp b/source/net/streamsocket.cpp index 8a26245..1dab2e3 100644 --- a/source/net/streamsocket.cpp +++ b/source/net/streamsocket.cpp @@ -1,4 +1,6 @@ -#ifndef WIN32 +#ifdef WIN32 +#include +#else #include #endif #include @@ -90,7 +92,7 @@ bool StreamSocket::poll_connect(const Time::TimeDelta &timeout) int err; socklen_t len = sizeof(int); - get_option(SOL_SOCKET, SO_ERROR, &err, &len); + priv->get_option(SOL_SOCKET, SO_ERROR, &err, &len); if(err!=0) { @@ -119,7 +121,7 @@ void StreamSocket::on_event(IO::PollEvent ev) { int err; socklen_t len = sizeof(err); - get_option(SOL_SOCKET, SO_ERROR, &err, &len); + priv->get_option(SOL_SOCKET, SO_ERROR, &err, &len); connecting = false; connected = (err==0);