[DGD] Hooks

Noah Gibbs angelbob at monkeyspeak.com
Mon Mar 17 05:18:09 CET 2003


On Sun, 16 Mar 2003, Ben Chambers wrote:
> Ok... so it doesn't look at the configuration file and look for
> incoming on only the telnet port and binary port?

  Close, but not quite.  It looks through the config file and can find a
list of telnet or binary ports (comma-separated?).

> Also, how do you tell what port the incoming connection is on?

  Bare-bones DGD will pass an integer to telnet_connect or
binary_connect.  That integer is an offset into the array of ports you
gave it in the config file.  For instance, if you have only one telnet
port and only one binary port, the number will always be 0.

 The Kernel MUDLib, if you use it, allows you to configure a different
handler for each port.  The handler for the appropriate port will be
called.  Presumably you'll use different handlers for your builder port
than your main port, and for your FTPD than your standard binary port.

-- 
angelbob at monkeyspeak.com
See my page of DGD documentation at
"http://phantasmal.sourceforge.net/DGD/"
If you post to the DGD list, you may see yourself there!

_________________________________________________________________
List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list