. Make this work with dgd 1.4.1.
. Make it work with dgd having the networking kfuns turned on.
This commit is contained in:
parent
10ffd5c302
commit
1e62d833d8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=250642
2 changed files with 49 additions and 8 deletions
|
@ -2,7 +2,28 @@ $FreeBSD$
|
||||||
|
|
||||||
--- 2.4.5/dgd/sys/driver.c.orig 1996-11-28 14:23:11.000000000 -0800
|
--- 2.4.5/dgd/sys/driver.c.orig 1996-11-28 14:23:11.000000000 -0800
|
||||||
+++ 2.4.5/dgd/sys/driver.c 2009-07-05 19:04:50.000000000 -0700
|
+++ 2.4.5/dgd/sys/driver.c 2009-07-05 19:04:50.000000000 -0700
|
||||||
@@ -143,12 +143,40 @@
|
@@ -3,6 +3,10 @@
|
||||||
|
# include <status.h>
|
||||||
|
# include "/dgd/lib/privilege.h"
|
||||||
|
|
||||||
|
+#ifdef __NETWORK_EXTENSIONS__
|
||||||
|
+#define TELNET_PORT 2000
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
object *usr; /* user array just before a swapout */
|
||||||
|
|
||||||
|
/*
|
||||||
|
@@ -50,6 +54,9 @@
|
||||||
|
}
|
||||||
|
}
|
||||||
|
send_message("Setting up ipc.\n");
|
||||||
|
+#ifdef __NETWORK_EXTENSIONS__
|
||||||
|
+ open_port("telnet", TELNET_PORT);
|
||||||
|
+#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
@@ -143,12 +147,40 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -45,7 +66,7 @@ $FreeBSD$
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -183,7 +211,7 @@
|
@@ -183,7 +215,7 @@
|
||||||
* NAME: telnet_connect()
|
* NAME: telnet_connect()
|
||||||
* DESCRIPTION: return a player object
|
* DESCRIPTION: return a player object
|
||||||
*/
|
*/
|
||||||
|
@ -54,7 +75,7 @@ $FreeBSD$
|
||||||
{
|
{
|
||||||
object user, player;
|
object user, player;
|
||||||
|
|
||||||
@@ -204,7 +232,7 @@
|
@@ -204,7 +236,7 @@
|
||||||
* NAME: binary_connect()
|
* NAME: binary_connect()
|
||||||
* DESCRIPTION: return another player object (just to test)
|
* DESCRIPTION: return another player object (just to test)
|
||||||
*/
|
*/
|
||||||
|
@ -63,7 +84,7 @@ $FreeBSD$
|
||||||
{
|
{
|
||||||
object user, player;
|
object user, player;
|
||||||
|
|
||||||
@@ -225,7 +253,7 @@
|
@@ -225,7 +257,7 @@
|
||||||
* NAME: runtime_error()
|
* NAME: runtime_error()
|
||||||
* DESCRIPTION: log a runtime error
|
* DESCRIPTION: log a runtime error
|
||||||
*/
|
*/
|
||||||
|
@ -72,7 +93,24 @@ $FreeBSD$
|
||||||
{
|
{
|
||||||
mixed **trace;
|
mixed **trace;
|
||||||
string progname, objname, function, str;
|
string progname, objname, function, str;
|
||||||
@@ -315,6 +343,15 @@
|
@@ -249,6 +281,16 @@
|
||||||
|
return user;
|
||||||
|
}
|
||||||
|
|
||||||
|
+#ifdef __NETWORK_EXTENSIONS__
|
||||||
|
+/*
|
||||||
|
+ * NAME: connection()
|
||||||
|
+ * DESCRIPTION: return a user object.
|
||||||
|
+ */
|
||||||
|
+object connection(string ipnumber, int port) {
|
||||||
|
+ return telnet_connect(port);
|
||||||
|
+}
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
/*
|
||||||
|
* NAME: runtime_error()
|
||||||
|
* DESCRIPTION: log a runtime error
|
||||||
|
@@ -315,6 +357,15 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -88,7 +126,7 @@ $FreeBSD$
|
||||||
* NAME: interrupt()
|
* NAME: interrupt()
|
||||||
* DESCRIPTION: deal with a kill signal
|
* DESCRIPTION: deal with a kill signal
|
||||||
*/
|
*/
|
||||||
@@ -377,3 +414,12 @@
|
@@ -377,3 +428,12 @@
|
||||||
{
|
{
|
||||||
return 0; /* No. */
|
return 0; /* No. */
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,19 +1,22 @@
|
||||||
|
$FreeBSD$
|
||||||
|
|
||||||
--- lpmud.dgd.orig 2009-07-03 22:33:04.000000000 -0700
|
--- lpmud.dgd.orig 2009-07-03 22:33:04.000000000 -0700
|
||||||
+++ lpmud.dgd 2009-07-03 22:34:31.000000000 -0700
|
+++ lpmud.dgd 2009-07-03 22:34:31.000000000 -0700
|
||||||
@@ -1,10 +1,10 @@
|
@@ -1,10 +1,11 @@
|
||||||
telnet_port = 2000; /* telnet port number */
|
telnet_port = 2000; /* telnet port number */
|
||||||
binary_port = 1999; /* binary port number */
|
binary_port = 1999; /* binary port number */
|
||||||
-directory = "/usr/local/mud/2.4.5";/* base directory (MUST be absolute) */
|
-directory = "/usr/local/mud/2.4.5";/* base directory (MUST be absolute) */
|
||||||
+directory = "%%DATADIR%%/lpmud";/* base directory (MUST be absolute) */
|
+directory = "%%DATADIR%%/lpmud";/* base directory (MUST be absolute) */
|
||||||
users = 40; /* max # of users */
|
users = 40; /* max # of users */
|
||||||
editors = 41; /* max # of editor sessions */
|
editors = 41; /* max # of editor sessions */
|
||||||
|
+ports = 16; /* max number of open ports (for network extensions) */
|
||||||
ed_tmpfile = "../tmp/ed"; /* proto editor tmpfile */
|
ed_tmpfile = "../tmp/ed"; /* proto editor tmpfile */
|
||||||
-swap_file = "../tmp/swap"; /* swap file */
|
-swap_file = "../tmp/swap"; /* swap file */
|
||||||
+swap_file = "../tmp/dgd-lpmud.swap";/* swap file */
|
+swap_file = "../tmp/dgd-lpmud.swap";/* swap file */
|
||||||
swap_size = 20960; /* # sectors in swap file */
|
swap_size = 20960; /* # sectors in swap file */
|
||||||
cache_size = 100; /* # sectors in swap cache */
|
cache_size = 100; /* # sectors in swap cache */
|
||||||
sector_size = 1024; /* swap sector size */
|
sector_size = 1024; /* swap sector size */
|
||||||
@@ -12,6 +12,7 @@
|
@@ -12,6 +13,7 @@
|
||||||
static_chunk = 64512; /* static memory chunk */
|
static_chunk = 64512; /* static memory chunk */
|
||||||
dynamic_chunk = 261120; /* dynamic memory chunk */
|
dynamic_chunk = 261120; /* dynamic memory chunk */
|
||||||
dump_file = "../dump"; /* state dump file */
|
dump_file = "../dump"; /* state dump file */
|
||||||
|
|
Loading…
Reference in a new issue