MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ is_unix_socket()

bool MayaFlux::Platform::is_unix_socket ( const std::filesystem::path & path)
inlinenodiscard

Whether a path holds a Unix socket file, without following a symbolic link.

On Windows a socket file is a reparse point, which the standard library does not report as a socket, so it is recognised here by its reparse tag.

Definition at line 166 of file UnixSocket.hpp.

167{
168 std::error_code ec;
169 const auto entry = std::filesystem::symlink_status(path, ec);
170 return !ec && detail::entry_is_socket(entry, path);
171}
bool entry_is_socket(const std::filesystem::file_status &status, const std::filesystem::path &path)

References MayaFlux::Platform::detail::entry_is_socket().

Referenced by list_unix_sockets().

Here is the call graph for this function:
Here is the caller graph for this function: