true if the path is a socket, false otherwise.bool isSocket() constReturns true if the path is a socket.
On POSIX, this checks if the file type is a socket (using stat and S_ISSOCK). On Windows, always returns false.
Inspired by Python's pathlib.Path.is_socket.
true if the path is a socket, false otherwise.