[msvc] Update csproj files (#4254)
[mono.git] / mono / utils / networking-windows.c
index 36b9e9836b78800753fcb94077a6dd0d9554b733..fa61d263cdec4a0fd96c1dad14586c4cebe47035 100644 (file)
@@ -16,4 +16,21 @@ mono_get_local_interfaces (int family, int *interface_count)
        return NULL;
 }
 
+void
+mono_networking_init (void)
+{
+       WSADATA wsadata;
+       int err;
+
+       err = WSAStartup (2 /* 2.0 */, &wsadata);
+       if(err)
+               g_error ("%s: Couldn't initialise networking", __func__);
+}
+
+void
+mono_networking_shutdown (void)
+{
+       WSACleanup ();
+}
+
 #endif /* defined(HOST_WIN32) */