summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/common/IOObject.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2014-08-06 18:16:26 +0000
committerZachary Turner <zturner@google.com>2014-08-06 18:16:26 +0000
commit98688922b7b3cb36a52d07b22a1783482ca76a50 (patch)
tree06a5943fd63759881f33d644e9400e8111287f0d /lldb/source/Host/common/IOObject.cpp
parent413297c53d13a05353fc940cf00ae83ee7f89dbf (diff)
downloadbcm5719-llvm-98688922b7b3cb36a52d07b22a1783482ca76a50.tar.gz
bcm5719-llvm-98688922b7b3cb36a52d07b22a1783482ca76a50.zip
Creates a socket host object.
This patch moves the logic of many common socket operations into its own class lldb_private::Socket. It then modifies the ConnectionFileDescriptor class, and a few users of that class, to use this new Socket class instead of hardcoding socket logic directly. Finally, this patch creates a common interface called IOObject for any objects that support reading and writing, so that endpoints such as sockets and files can be treated the same. Differential Revision: http://reviews.llvm.org/D4641 Reviewed by: Todd Fiala, Greg Clayton llvm-svn: 214984
Diffstat (limited to 'lldb/source/Host/common/IOObject.cpp')
-rw-r--r--lldb/source/Host/common/IOObject.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/lldb/source/Host/common/IOObject.cpp b/lldb/source/Host/common/IOObject.cpp
new file mode 100644
index 00000000000..6f7de442be1
--- /dev/null
+++ b/lldb/source/Host/common/IOObject.cpp
@@ -0,0 +1,14 @@
+//===-- IOObject.cpp --------------------------------------------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#include "lldb/Host/IOObject.h"
+
+using namespace lldb_private;
+
+const IOObject::WaitableHandle IOObject::kInvalidHandleValue = -1;
OpenPOWER on IntegriCloud