#pragma once
+#include <cfloat>
#include <climits>
#include <cmath>
#include <csignal>
#include "compat.h"
#include "aligned_storage.h"
#include "typedefs.h"
+#include "convto.h"
#include "stdalgo.h"
CoreExport extern InspIRCd* ServerInstance;
};
#include "config.h"
-#include "convto.h"
#include "dynref.h"
#include "consolecolors.h"
#include "cull_list.h"
#include "extensible.h"
#include "fileutils.h"
+#include "ctables.h"
#include "numerics.h"
#include "numeric.h"
#include "uid.h"
#include "logger.h"
#include "usermanager.h"
#include "socket.h"
-#include "ctables.h"
#include "command_parse.h"
#include "mode.h"
#include "socketengine.h"
*/
static void DefaultGenRandom(char* output, size_t max);
+ /** Bind to a specific port from a config tag.
+ * @param Tag the tag that contains bind information.
+ * @param sa The endpoint to listen on.
+ * @params old_ports Previously listening ports that may be on the same endpoint.
+ */
+ bool BindPort(ConfigTag* tag, const irc::sockets::sockaddrs& sa, std::vector<ListenSocket*>& old_ports);
+
/** Bind all ports specified in the configuration file.
* @return The number of ports bound without error
*/
*/
static bool DefaultIsChannel(const std::string& channel);
+ /** Determines whether a hostname is valid according to RFC 5891 rules.
+ * @param host The hostname to validate.
+ * @return True if the hostname is valid; otherwise, false.
+ */
+ static bool IsHost(const std::string& host);
+
/** Return true if str looks like a server ID
* @param sid string to check against
*/
}
#include "numericbuilder.h"
-#include "modules/whois.h"
-#include "modules/stats.h"