adb_connection.h revision 5821806d5e7f356e8fa4b058a389a808ea183019
1// Copyright (c) 2012 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef TOOLS_ANDROID_COMMON_ADB_CONNECTION_H_
6#define TOOLS_ANDROID_COMMON_ADB_CONNECTION_H_
7
8namespace tools {
9
10// Creates a socket that can forward to a host socket through ADB.
11// The format of forward_to is <port>:<ip_address>.
12// Returns the socket handle, or -1 on any error.
13int ConnectAdbHostSocket(const char* forward_to);
14
15}  // namespace tools
16
17#endif  // TOOLS_ANDROID_COMMON_ADB_CONNECTION_H_
18
19