• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
8 namespace 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.
13 int ConnectAdbHostSocket(const char* forward_to);
14 
15 }  // namespace tools
16 
17 #endif  // TOOLS_ANDROID_COMMON_ADB_CONNECTION_H_
18 
19