Ports for DoT

Posted by Viruz on Wed 06 Feb 2002 07:47 PM — 6 posts, 30,780 views.

#0
I can't seem to find where the default ports for the servers are on , specifically the webserver and the mud itself

Now I am quite sure they can be passed by using arguments, but what I am looking for is where it is actualy defined.

either it is put in a config file where I cant seem to find the reference to it, or it is set somewhere in a header or cpp file which I can't find in grep.

so simple question ... where are these set?
Australia Forum Administrator #1
In comm.cpp, at lines 284 onwards are the following ...


    // set default bootup parameters
    fBootTestOnly = false;
    port = 4000;


The web port seems to be port+5, irc port seems to be port+1, and the mudftp port is port+6.
Amended on Thu 07 Feb 2002 02:11 AM by Nick Gammon
#2
Thanks Nick,


If Kalahn just happens to pop by and read this , just a quick suggestion for a next release.

Can ya add the ports in a #define somewhere possibly dawn.h
just would make life a tad easier, specially for someone test a few muds all around the same port range


#define port 4000
#define irc_port 4001
#define webport 4005

etc... :)
Amended on Thu 07 Feb 2002 06:27 PM by Viruz
United Kingdom #3
Will do, I am in the process of moving to the UK (from New Zealand), in the next release in a few months a lot of changes will be included - such as this.

- Kal
#4
=============================================================

Posted by Viruz (19 posts) [Biography] bio
Date Thu 07 Feb 2002 02:44 AM (UTC)

Amended on Thu 07 Feb 2002 06:27 PM (UTC) by Viruz
Message
Thanks Nick,


If Kalahn just happens to pop by and read this , just a quick suggestion for a next release.

Can ya add the ports in a #define somewhere possibly dawn.h
just would make life a tad easier, specially for someone test a few muds all around the same port range


#define port 4000
#define irc_port 4001
#define webport 4005

etc... :)

========================================================


Did that ever get done? Since I'm playing with DOT right now and like it. I wouldn't mind seeing what the web stuff does. Tho the IRC one makes me wonder but hey anything is worth a peek.
#5
In the code, you'll want to look for a function called 'do_look', which is what is called when players look at their surroundings. In there, there will be a line that displays the room name followed by the room description -- that's where you'll want to add the code that will output a dotted line.