Android-cuttlefish cvd tool
Functions | Variables
socket_spec.h File Reference
#include <string>
#include <tuple>
#include "adb_unique_fd.h"
Include dependency graph for socket_spec.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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_tcp_port=nullptr)
 
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)
 

Variables

bool gListenAll
 

Function Documentation

◆ get_host_socket_spec_port()

int get_host_socket_spec_port ( std::string_view  spec,
std::string *  error 
)

◆ is_local_socket_spec()

bool is_local_socket_spec ( std::string_view  spec)

◆ is_socket_spec()

bool is_socket_spec ( std::string_view  spec)

◆ parse_tcp_socket_spec()

bool parse_tcp_socket_spec ( std::string_view  spec,
std::string *  hostname,
int *  port,
std::string *  serial,
std::string *  error 
)

◆ socket_spec_connect()

bool socket_spec_connect ( unique_fd fd,
std::string_view  address,
int *  port,
std::string *  serial,
std::string *  error 
)

◆ socket_spec_listen()

int socket_spec_listen ( std::string_view  spec,
std::string *  error,
int *  resolved_tcp_port = nullptr 
)

Variable Documentation

◆ gListenAll

bool gListenAll
extern