diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-06-16 01:19:45 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-06-23 19:51:28 +0200 |
| commit | 145d9aeb57a9768615d1331f25c30bc365df905e (patch) | |
| tree | b1668d15c2ffcfd62992b70a8fcfe52d834b8515 | |
| parent | 1fbc7667051f28f4a8349fce1cdb593c1df48e38 (diff) | |
Add Socket::is_open().
| -rw-r--r-- | src/lib/dcpomatic_socket.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/dcpomatic_socket.h b/src/lib/dcpomatic_socket.h index 3fa2908ff..86e5f1266 100644 --- a/src/lib/dcpomatic_socket.h +++ b/src/lib/dcpomatic_socket.h @@ -56,6 +56,10 @@ public: void run(); void close(); + bool is_open() const { + return _socket.is_open(); + } + class ReadDigestScope { public: |
