summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
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);
}
}