Android-cuttlefish cvd tool
|
#include "socket_spec.h"
#include <limits>
#include <string>
#include <string_view>
#include <unordered_map>
#include <vector>
#include <android-base/parseint.h>
#include <android-base/parsenetaddress.h>
#include <android-base/stringprintf.h>
#include <android-base/strings.h>
#include <cutils/sockets.h>
#include "adb.h"
#include "adb_auth.h"
#include "adb_mdns.h"
#include "adb_utils.h"
#include "sysdeps.h"
Classes | |
struct | LocalSocketType |
Macros | |
#define | ADB_LINUX 0 |
#define | ADB_WINDOWS 0 |
Functions | |
bool | parse_tcp_socket_spec (std::string_view spec, std::string *hostname, int *port, std::string *serial, std::string *error) |
int | get_host_socket_spec_port (std::string_view spec, std::string *error) |
static bool | tcp_host_is_local (std::string_view hostname) |
bool | is_socket_spec (std::string_view spec) |
bool | is_local_socket_spec (std::string_view spec) |
bool | socket_spec_connect (unique_fd *fd, std::string_view address, int *port, std::string *serial, std::string *error) |
int | socket_spec_listen (std::string_view spec, std::string *error, int *resolved_port) |
Variables | |
bool | gListenAll = false |
static auto & | kLocalSocketTypes |
#define ADB_LINUX 0 |
#define ADB_WINDOWS 0 |
int get_host_socket_spec_port | ( | std::string_view | spec, |
std::string * | error | ||
) |
bool is_local_socket_spec | ( | std::string_view | spec | ) |
bool is_socket_spec | ( | std::string_view | spec | ) |
bool parse_tcp_socket_spec | ( | std::string_view | spec, |
std::string * | hostname, | ||
int * | port, | ||
std::string * | serial, | ||
std::string * | error | ||
) |
bool socket_spec_connect | ( | unique_fd * | fd, |
std::string_view | address, | ||
int * | port, | ||
std::string * | serial, | ||
std::string * | error | ||
) |
int socket_spec_listen | ( | std::string_view | spec, |
std::string * | error, | ||
int * | resolved_port | ||
) |
|
static |
bool gListenAll = false |
|
static |