summaryrefslogtreecommitdiffstats
path: root/include/lldb/Core/Connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/lldb/Core/Connection.h')
-rw-r--r--include/lldb/Core/Connection.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/lldb/Core/Connection.h b/include/lldb/Core/Connection.h
index c354519..121395c 100644
--- a/include/lldb/Core/Connection.h
+++ b/include/lldb/Core/Connection.h
@@ -187,6 +187,20 @@ public:
virtual bool
InterruptRead() = 0;
+ //------------------------------------------------------------------
+ /// Returns the underlying IOObject used by the Connection.
+ ///
+ /// The IOObject can be used to wait for data to become available
+ /// on the connection. If the Connection does not use IOObjects (and
+ /// hence does not support waiting) this function should return a
+ /// null pointer.
+ ///
+ /// @return
+ /// The underlying IOObject used for reading.
+ //------------------------------------------------------------------
+ virtual lldb::IOObjectSP
+ GetReadObject() { return lldb::IOObjectSP(); }
+
private:
//------------------------------------------------------------------
// For Connection only
OpenPOWER on IntegriCloud