MOO-cows Mailing List Archive

[Prev][Next][Index][Thread]

Re: Virtual Host MOO: the code



On Sun, 2 Mar 1997, Dexedrine wrote:

> I'm the guy who wrote the core patching util, and I was wondering about
> something.  I patched the server code (1.8p5) for virtual hosting
> capabilities, and I was wondering if anyone else has done this/if anyone
> is interested in it.

I have written interface binding patches also.  There are two options:
1) Defining INTERFACE_BINDING in options.h which might break current
network objects.  Here's some sample evals:

;listen(#0, {"www.nowhere.net", 4567})
=> {"www.nowhere.net", 4567}
;listeners()
=> {{#0, {"myhost.com", 2342}, 1}, {#0, {"www.nowhere.net", 4567}, 1}}

2) Using a -h switch at the command line to define an address to use if
you don't want it to bind to INADDR_ANY (all interfaces).  Here's some
sample output:

badfup:~/MOO$ ./moo -h www.nowhere.net Minimal.db Minimal.db.new 7723
Mar  2 20:17:21: NAME_LOOKUP: Started new lookup process
Mar  2 20:17:21: STARTING: Version 1.8.0p5 of the LambdaMOO server
Mar  2 20:17:21:           (Using BSD/TCP protocol)
Mar  2 20:17:21:           (Task timeouts measured in server CPU seconds.)
...
Mar  2 20:17:21: LOADING: Reading forked and suspended tasks...
Mar  2 20:17:21: LOADING: Reading list of formerly active connections...
Mar  2 20:17:21: LOADING: Minimal.db done, will dump new database on
Minimal.db.new
Mar  2 20:17:21: LISTEN: #0 now listening on port 7723

Patches are available at:
 http://www.the-b.org/~kenny/multi.patch
 ftp://ftp.the-b.org/pub/moo/local/multi.patch

> Jonathan Mischo -- "...I'll run naked through the streets without my mask on."
> Systems and Network Administrator -- Taos Mountain -- dex@wankers.net
> GAT/O d- s+:+ a? C++++(---)$ UBISOVX*++++$ !P>P+ !L(-) E--- W+(--) K- w---
> V-- PS++ Y+(++) t+ X++++ R !tv(+) b++ DI+++++ D+++ G+ e* h- r++ y**

.------------------------------.
|          Kenny Root          |        MFA Organization
|        kenny@the-b.org       |        http://www.the-b.org/
| http://www.the-b.org/~kenny/ |
`------------------------------'



References:

Home | Subject Index | Thread Index