aboutsummaryrefslogtreecommitdiffstats
path: root/include/socket.h
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-01-16 22:54:02 +0000
committerGravatar Sadie Powell2023-01-16 22:54:02 +0000
commit612e1a30274bf4e239077f63a877440eb134da4d (patch)
tree77402bfa73ce247460a6613de28a393dde2122f6 /include/socket.h
parentFix some testing changes that snuck in to the previous commit. (diff)
Store the actual error in FailedPort instead of an error code.
Diffstat (limited to 'include/socket.h')
-rw-r--r--include/socket.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/socket.h b/include/socket.h
index ea5b37ea0..6d7cee958 100644
--- a/include/socket.h
+++ b/include/socket.h
@@ -159,15 +159,15 @@ namespace irc
struct CoreExport FailedPort final
{
/** The error which happened during binding. */
- int error;
+ const std::string error;
/** The endpoint on which we were attempting to bind. */
- irc::sockets::sockaddrs sa;
+ const irc::sockets::sockaddrs sa;
/** The config tag that the listener was created from. */
- std::shared_ptr<ConfigTag> tag;
+ const std::shared_ptr<ConfigTag> tag;
- FailedPort(int err, irc::sockets::sockaddrs& addr, const std::shared_ptr<ConfigTag>& cfg)
+ FailedPort(const std::string& err, irc::sockets::sockaddrs& addr, const std::shared_ptr<ConfigTag>& cfg)
: error(err)
, sa(addr)
, tag(cfg)