]> git.tdb.fi Git - libs/net.git/blobdiff - source/net/streamsocket.cpp
Hide the set_option and get_option functions in socket_private.h
[libs/net.git] / source / net / streamsocket.cpp
index 8a262454eca173dfcc6ef93f0fcd0d45c10582f7..3da0cc312ff640511f4a525c06ed7d6808f24888 100644 (file)
@@ -90,7 +90,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 +119,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);