[mono-threads] Assert that we do not try to signal the handle multiple times
[mono.git] / mono / utils / networking-windows.c
index 36b9e9836b78800753fcb94077a6dd0d9554b733..ea9edff0a30df111fcad50b67c5e3275e0e3984e 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 (MAKEWORD (2,0), &wsadata);
+       if(err)
+               g_error ("%s: Couldn't initialise networking", __func__);
+}
+
+void
+mono_networking_shutdown (void)
+{
+       WSACleanup ();
+}
+
 #endif /* defined(HOST_WIN32) */