class atransport

Defined at line 253 of file ../../src/developer/adb/third_party/adb/transport.h

Public Members

const TransportId id
bool online
TransportType type
basic_string serial
basic_string product
basic_string model
basic_string device
basic_string devpath
bool use_tls
int tls_version
basic_string auth_key
optional auth_id
char[20] token
size_t failed_auth_attempts

Public Methods

void atransport (ReconnectCallback reconnect, ConnectionState state)

Defined at line 262 of file ../../src/developer/adb/third_party/adb/transport.h

void atransport (ConnectionState state)

Defined at line 273 of file ../../src/developer/adb/third_party/adb/transport.h

bool kicked ()

Defined at line 280 of file ../../src/developer/adb/third_party/adb/transport.h

std::shared_ptr<Connection> connection ()

Defined at line 287 of file ../../src/developer/adb/third_party/adb/transport.h

bool IsTcpDevice ()

Defined at line 317 of file ../../src/developer/adb/third_party/adb/transport.h

std::string serial_name ()

Defined at line 322 of file ../../src/developer/adb/third_party/adb/transport.h

const FeatureSet & features ()

Defined at line 328 of file ../../src/developer/adb/third_party/adb/transport.h

bool SupportsDelayedAck ()

Defined at line 332 of file ../../src/developer/adb/third_party/adb/transport.h

void ~atransport ()

Defined at line 695 of file ../../src/developer/adb/third_party/adb/transport.cc

int Write (apacket * p)

Defined at line 697 of file ../../src/developer/adb/third_party/adb/transport.cc

void Reset ()

Defined at line 701 of file ../../src/developer/adb/third_party/adb/transport.cc

void Kick ()

Defined at line 708 of file ../../src/developer/adb/third_party/adb/transport.cc

ConnectionState GetConnectionState ()

ConnectionState can be read by all threads, but can only be written in the main thread.

Defined at line 715 of file ../../src/developer/adb/third_party/adb/transport.cc

void SetConnectionState (ConnectionState state)

Defined at line 717 of file ../../src/developer/adb/third_party/adb/transport.cc

void SetConnection (std::shared_ptr<Connection> connection)

Defined at line 723 of file ../../src/developer/adb/third_party/adb/transport.cc

bool HandleRead (std::unique_ptr<apacket> p)

Defined at line 728 of file ../../src/developer/adb/third_party/adb/transport.cc

void HandleError (const std::string & error)

Defined at line 742 of file ../../src/developer/adb/third_party/adb/transport.cc

int get_tls_version ()

Defined at line 759 of file ../../src/developer/adb/third_party/adb/transport.cc

void update_version (int version, size_t payload)

Defined at line 752 of file ../../src/developer/adb/third_party/adb/transport.cc

int get_protocol_version ()

Defined at line 757 of file ../../src/developer/adb/third_party/adb/transport.cc

size_t get_max_payload ()

Defined at line 761 of file ../../src/developer/adb/third_party/adb/transport.cc

bool has_feature (const std::string & feature)

Defined at line 825 of file ../../src/developer/adb/third_party/adb/transport.cc

void SetFeatures (const std::string & features_string)

Loads the transport's feature set from the given string.

Defined at line 829 of file ../../src/developer/adb/third_party/adb/transport.cc

void AddDisconnect (adisconnect * disconnect)

Defined at line 834 of file ../../src/developer/adb/third_party/adb/transport.cc

void RemoveDisconnect (adisconnect * disconnect)

Defined at line 836 of file ../../src/developer/adb/third_party/adb/transport.cc

void RunDisconnects ()

Defined at line 838 of file ../../src/developer/adb/third_party/adb/transport.cc