少年修仙传客户端基础资源
hch
2024-04-01 d01413b00ef631ac20347716b23818b0b811f65f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
 * \file
 * Windows-specific networking implementations
 *
 * Author:
 *    Alexander Köplinger (alex.koeplinger@outlook.com)
 */
 
#include <mono/utils/networking.h>
 
#if defined(HOST_WIN32)
 
void *
mono_get_local_interfaces (int family, int *interface_count)
{
    *interface_count = 0;
    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) */