Android-cuttlefish cvd tool
Enumerations | Functions | Variables
adb_listeners.h File Reference
#include "adb.h"
#include <string>
#include <android-base/macros.h>
Include dependency graph for adb_listeners.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  InstallStatus {
  INSTALL_STATUS_OK = 0 , INSTALL_STATUS_INTERNAL_ERROR = -1 , INSTALL_STATUS_CANNOT_BIND = -2 , INSTALL_STATUS_CANNOT_REBIND = -3 ,
  INSTALL_STATUS_LISTENER_NOT_FOUND = -4
}
 

Functions

InstallStatus install_listener (const std::string &local_name, const char *connect_to, atransport *transport, int flags, int *resolved_tcp_port, std::string *error)
 
std::string format_listeners ()
 
InstallStatus remove_listener (const char *local_name, atransport *transport)
 
void remove_all_listeners ()
 

Variables

constexpr const char * kSmartSocketConnectTo = "*smartsocket*"
 
constexpr int INSTALL_LISTENER_NO_REBIND = 1 << 0
 
constexpr int INSTALL_LISTENER_DISABLED = 1 << 1
 

Enumeration Type Documentation

◆ InstallStatus

Enumerator
INSTALL_STATUS_OK 
INSTALL_STATUS_INTERNAL_ERROR 
INSTALL_STATUS_CANNOT_BIND 
INSTALL_STATUS_CANNOT_REBIND 
INSTALL_STATUS_LISTENER_NOT_FOUND 

Function Documentation

◆ format_listeners()

std::string format_listeners ( )

◆ install_listener()

InstallStatus install_listener ( const std::string &  local_name,
const char *  connect_to,
atransport transport,
int  flags,
int *  resolved_tcp_port,
std::string *  error 
)

◆ remove_all_listeners()

void remove_all_listeners ( )

◆ remove_listener()

InstallStatus remove_listener ( const char *  local_name,
atransport transport 
)

Variable Documentation

◆ INSTALL_LISTENER_DISABLED

constexpr int INSTALL_LISTENER_DISABLED = 1 << 1
inlineconstexpr

◆ INSTALL_LISTENER_NO_REBIND

constexpr int INSTALL_LISTENER_NO_REBIND = 1 << 0
inlineconstexpr

◆ kSmartSocketConnectTo

constexpr const char* kSmartSocketConnectTo = "*smartsocket*"
inlineconstexpr