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() {}
26 Connection::~Connection() {}
28 Connection *Connection::CreateDefaultConnection(const char *url) {
30 if (strstr(url, "file://") == url)
31 return new ConnectionGenericFile();
33 return new ConnectionFileDescriptor();