summaryrefslogtreecommitdiff
path: root/include/inspircd.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/inspircd.h')
-rw-r--r--include/inspircd.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/inspircd.h b/include/inspircd.h
index 447fb8441..b028280f7 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -344,6 +344,13 @@ class CoreExport InspIRCd
*/
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
*/