summaryrefslogtreecommitdiff
path: root/net/dgd/files/patch-comp.c
blob: cb23188eb8619b9e1a4e56aa64f3a8fe4bcac93e (plain) (blame)
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
--- src/comp/comp.c.orig	Tue Sep  2 10:58:56 2003
+++ src/comp/comp.c	Tue Sep  2 11:14:29 2003
@@ -558,6 +558,20 @@
     return TRUE;
 }
 
+#ifdef NETWORK_PACKAGE
+/*
+ * NAME:	comm->openport()
+ * DESCRIPTION:	pretend to open a port
+ */
+void comm_openport(f, obj, protocol, portnr)
+frame *f;
+object *obj;
+unsigned char protocol;
+unsigned short portnr;
+{
+}
+#endif
+
 /*
  * NAME:	comm->finish()
  * DESCRIPTION:	pretend to terminate connections
@@ -585,6 +599,35 @@
     return 0;
 }
 
+#ifdef NETWORK_PACKAGE
+/*
+ * NAME:	comm->connect()
+ * DESCRIPTION:	pretend to open a connection to a port
+ */
+void
+comm_connect(f, obj, addr, protocol, port)
+frame *f;
+object *obj;
+char *addr;
+unsigned char protocol;
+unsigned short port;
+{
+}
+
+/*
+ * NAME:	comm->senddatagram()
+ * DESCRIPTION:	pretend to send a UDP datagram
+ */
+int comm_senddatagram(obj, str, ip, port)
+object * obj;
+string * str;
+string * ip;
+int port;
+{
+	return 0;
+}
+#endif
+
 /*
  * NAME:	comm->udpsend()
  * DESCRIPTION:	pretend to send a message on the UDP channel of a connection
@@ -668,8 +711,14 @@
  * NAME:	comm->users()
  * DESCRIPTION:	pretend to return an array with all user objects
  */
+#ifdef NETWORK_PACKAGE
+array *comm_users(data, ports)
+dataspace *data;
+bool ports;
+#else
 array *comm_users(data)
 dataspace *data;
+#endif
 {
     return (array *) NULL;
 }