From eb0b1d7781d49b6499c708bbe8850ac893ab8969 Mon Sep 17 00:00:00 2001 From: Colin Ward Date: Sat, 10 Aug 2024 06:23:34 +0900 Subject: [PATCH] Add isOpen() method This can be used to find out whether the factory's underlying socket is open. --- RemoteFactory.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/RemoteFactory.h b/RemoteFactory.h index 3e22f5a..6227c4f 100644 --- a/RemoteFactory.h +++ b/RemoteFactory.h @@ -52,6 +52,11 @@ class RRemoteFactory RFileUtilsObject &getFileUtilsObject(); + bool isOpen() + { + return m_socket.isOpen(); + } + bool isRemote() { return m_serverName.length() != 0 && !m_useLocal;