Преглед изворни кода

LibIPC: Add Connection::is_open()

This will allow clients to see if the IPC socket is still open.
Gunnar Beutner пре 4 година
родитељ
комит
e331ef7057
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      Userland/Libraries/LibIPC/Connection.h

+ 2 - 0
Userland/Libraries/LibIPC/Connection.h

@@ -132,6 +132,8 @@ public:
 
 
     virtual void die() { }
     virtual void die() { }
 
 
+    bool is_open() const { return m_socket->is_open(); }
+
 protected:
 protected:
     Core::LocalSocket& socket() { return *m_socket; }
     Core::LocalSocket& socket() { return *m_socket; }