summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-12 22:58:48 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-12 22:58:48 +0000
commitb3c2abf41eead7a9aac5820796e9600ced8430df (patch)
treec2fbeb42aae2c48ad71c58f45b275444fc29cfa9 /include
parentceafaa5e7a3f9c6eb78bf2823212ecff92d393c7 (diff)
When some (but not all) of the ports fail to bind on startup, give the user a list of the failed port/ip pairs on the terminal.
Other ircds dont do this, and say 'go read the log'. I say if we can output them to a log, why not the screen? :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5728 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/inspircd.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/inspircd.h b/include/inspircd.h
index ea3194ff2..baa1fb589 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -190,6 +190,9 @@ class FileLogger : public EventHandler
virtual ~FileLogger();
};
+/** A list of failed port bindings, used for informational purposes on startup */
+typedef std::vector<std::pair<std::string, long> > FailedPortList;
+
class XLineManager;
/** The main class of the irc server.
@@ -465,7 +468,7 @@ class InspIRCd : public classbase
* @param found_ports The actual number of ports found in the config, as opposed to the number actually bound
* @return The number of ports actually bound without error
*/
- int BindPorts(bool bail, int &found_ports);
+ int BindPorts(bool bail, int &found_ports, FailedPortList &failed_ports);
/** Returns true if this server has the given port bound to the given address
* @param port The port number