1 //===-- Connection.cpp ------------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
12 // Other libraries and framework includes
14 #include "lldb/Core/Connection.h"
17 #include "lldb/Host/windows/ConnectionGenericFileWindows.h"
20 #include "lldb/Host/ConnectionFileDescriptor.h"
22 using namespace lldb_private;
24 Connection::Connection ()
28 Connection::~Connection ()
33 Connection::CreateDefaultConnection(const char *url)
36 if (strstr(url, "file://") == url)
37 return new ConnectionGenericFile();
39 return new ConnectionFileDescriptor();