summaryrefslogtreecommitdiffstats
path: root/tools/android/common/adb_connection.h
blob: 3fa0fb396f541c3a0cc2b77cf24060c0fa0d8def (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef TOOLS_ANDROID_COMMON_ADB_CONNECTION_H_
#define TOOLS_ANDROID_COMMON_ADB_CONNECTION_H_

namespace tools {

// Creates a socket that can forward to a host socket through ADB.
// The format of forward_to is <port>:<ip_address>.
// Returns the socket handle, or -1 on any error.
int ConnectAdbHostSocket(const char* forward_to);

}  // namespace tools

#endif  // TOOLS_ANDROID_COMMON_ADB_CONNECTION_H_