From b3c2abf41eead7a9aac5820796e9600ced8430df Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 12 Nov 2006 22:58:48 +0000 Subject: 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 --- include/inspircd.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') 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 > 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 -- cgit v1.2.3