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.
5 #ifndef TOOLS_ANDROID_COMMON_ADB_CONNECTION_H_
6 #define TOOLS_ANDROID_COMMON_ADB_CONNECTION_H_
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.
13 int ConnectAdbHostSocket(const char* forward_to
);
17 #endif // TOOLS_ANDROID_COMMON_ADB_CONNECTION_H_