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