-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnet_udp_null.c
95 lines (80 loc) · 870 Bytes
/
net_udp_null.c
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#include "quakedef.h"
Addr myip;
int
UDP_Init(void)
{
return -1;
}
void
UDP_Shutdown(void)
{
}
void
UDP_Listen(bool on)
{
USED(on);
}
void
udpinfo(Addr *a)
{
USED(a);
}
int
UDP_Connect(Addr *a)
{
USED(a);
return -1;
}
int
getnewcon(Addr *a)
{
USED(a);
return 0;
}
int
udpread(byte *buf, int len, Addr *a)
{
USED(buf); USED(len); USED(a);
return -1;
}
int
udpwrite(byte *buf, int len, Addr *a)
{
USED(buf); USED(len); USED(a);
return -1;
}
char *
UDP_AddrToString(Addr *a)
{
USED(a);
return "";
}
int
UDP_Broadcast(byte *buf, int len)
{
USED(buf); USED(len);
return -1;
}
int
getip(char *s, Addr *a)
{
USED(s); USED(a);
return -1;
}
int
UDP_AddrCompare(Addr *a1, Addr *a2)
{
USED(a1); USED(a2);
return 0;
}
u16int
UDP_GetSocketPort(Addr *a)
{
USED(a);
return 0;
}
void
UDP_SetSocketPort(Addr *a, u16int port)
{
USED(a); USED(port);
}