adb_connection.h 578 B

123456789101112131415161718
  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. #ifndef TOOLS_ANDROID_COMMON_ADB_CONNECTION_H_
  5. #define TOOLS_ANDROID_COMMON_ADB_CONNECTION_H_
  6. namespace tools {
  7. // Creates a socket that can forward to a host socket through ADB.
  8. // The format of forward_to is <port>:<ip_address>.
  9. // Returns the socket handle, or -1 on any error.
  10. int ConnectAdbHostSocket(const char* forward_to);
  11. } // namespace tools
  12. #endif // TOOLS_ANDROID_COMMON_ADB_CONNECTION_H_