]> git.tdb.fi Git - libs/net.git/blobdiff - source/socket.cpp
Hide AF_* constants from the public header
[libs/net.git] / source / socket.cpp
index e91b684be8187407a6d323ff276f692756041a2e..8fa910cbd5a97eb52479a0e18192f18a6425633b 100644 (file)
@@ -66,7 +66,7 @@ Socket::Socket(Family af, int type, int proto):
        local_addr(0),
        peer_addr(0)
 {
-       priv->handle = socket(af, type, proto);
+       priv->handle = socket(family_to_sys(af), type, proto);
 
 #ifdef WIN32
        *priv->event = CreateEvent(0, false, false, 0);