Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / utils / networking-windows.c
1 /**
2  * \file
3  * Windows-specific networking implementations
4  *
5  * Author:
6  *      Alexander Köplinger (alex.koeplinger@outlook.com)
7  */
8
9 #include <mono/utils/networking.h>
10
11 #if defined(HOST_WIN32)
12
13 void *
14 mono_get_local_interfaces (int family, int *interface_count)
15 {
16         *interface_count = 0;
17         return NULL;
18 }
19
20 void
21 mono_networking_init (void)
22 {
23         WSADATA wsadata;
24         int err;
25
26         err = WSAStartup (2 /* 2.0 */, &wsadata);
27         if(err)
28                 g_error ("%s: Couldn't initialise networking", __func__);
29 }
30
31 void
32 mono_networking_shutdown (void)
33 {
34         WSACleanup ();
35 }
36
37 #endif /* defined(HOST_WIN32) */