Add Socket::is_open().
authorCarl Hetherington <cth@carlh.net>
Sat, 15 Jun 2024 23:19:45 +0000 (01:19 +0200)
committerCarl Hetherington <cth@carlh.net>
Sun, 23 Jun 2024 17:51:28 +0000 (19:51 +0200)
src/lib/dcpomatic_socket.h

index 3fa2908ff098433abb89d0d4b70ed4fd3c3ab0a4..86e5f12661185e2ad90d4ea0335fcd55a37c4b8d 100644 (file)
@@ -56,6 +56,10 @@ public:
        void run();
        void close();
 
+       bool is_open() const {
+               return _socket.is_open();
+       }
+
        class ReadDigestScope
        {
        public: