[sgen] Move STW GC events to sgen-stw.c so they are properly reported.
[mono.git] / mono / utils / networking-windows.c
index 36b9e9836b78800753fcb94077a6dd0d9554b733..cf8200c816401cdf270a393111ecca6149b9faee 100644 (file)
@@ -1,5 +1,6 @@
-/*
- * networking-windows.c: Windows-specific networking implementations
+/**
+ * \file
+ * Windows-specific networking implementations
  *
  * Author:
  *     Alexander Köplinger (alex.koeplinger@outlook.com)
@@ -16,4 +17,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) */