aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGravatar Peter Powell2019-05-29 12:48:05 +0100
committerGravatar Peter Powell2019-05-29 17:50:49 +0100
commit33932b95e4b886aec8ac1bf3e3e1665826bcd0ea (patch)
tree99f7a15ae6c73753c2a330aa1e54128de3cf99a1 /include
parentAdd an overload of StreamSocket::Close which closes when all data has been wr... (diff)
Add irc::sockets::isunix for checking if a file is a UNIX socket.
Diffstat (limited to 'include')
-rw-r--r--include/socket.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/socket.h b/include/socket.h
index e527bc7f5..6ecb23020 100644
--- a/include/socket.h
+++ b/include/socket.h
@@ -127,6 +127,12 @@ namespace irc
* @return True if the conversion was successful; otherwise, false.
*/
CoreExport bool untosa(const std::string& path, irc::sockets::sockaddrs& sa);
+
+ /** Determines whether the specified file is a UNIX socket.
+ * @param file The path to the file to check.
+ * @return True if the file is a UNIX socket; otherwise, false.
+ */
+ CoreExport bool isunix(const std::string& file);
}
}