◆ Data
◆ ResultCallback
◆ Role
◆ State
Enumerator |
---|
Ready | |
ExchangingMsgs | |
ExchangingPeerInfo | |
Stopped | |
◆ PairingConnectionCtx()
PairingConnectionCtx::PairingConnectionCtx |
( |
Role |
role, |
|
|
const Data & |
pswd, |
|
|
const PeerInfo & |
peer_info, |
|
|
const Data & |
certificate, |
|
|
const Data & |
priv_key |
|
) |
| |
|
explicit |
◆ ~PairingConnectionCtx()
PairingConnectionCtx::~PairingConnectionCtx |
( |
| ) |
|
|
virtual |
◆ CheckHeaderType()
bool PairingConnectionCtx::CheckHeaderType |
( |
adb::proto::PairingPacket::Type |
expected, |
|
|
uint8_t |
actual |
|
) |
| |
|
private |
◆ CreateHeader()
void PairingConnectionCtx::CreateHeader |
( |
PairingPacketHeader * |
header, |
|
|
adb::proto::PairingPacket::Type |
type, |
|
|
uint32_t |
payload_size |
|
) |
| |
|
private |
◆ CreatePairingAuthPtr()
◆ DoExchangeMsgs()
bool PairingConnectionCtx::DoExchangeMsgs |
( |
| ) |
|
|
private |
◆ DoExchangePeerInfo()
bool PairingConnectionCtx::DoExchangePeerInfo |
( |
| ) |
|
|
private |
◆ NotifyResult()
void PairingConnectionCtx::NotifyResult |
( |
const PeerInfo * |
p | ) |
|
|
private |
◆ ReadHeader()
◆ SetupTlsConnection()
bool PairingConnectionCtx::SetupTlsConnection |
( |
| ) |
|
|
private |
◆ Start()
bool PairingConnectionCtx::Start |
( |
int |
fd, |
|
|
ResultCallback |
cb, |
|
|
void * |
opaque |
|
) |
| |
◆ StartWorker()
void PairingConnectionCtx::StartWorker |
( |
| ) |
|
|
private |
◆ WriteHeader()
bool PairingConnectionCtx::WriteHeader |
( |
const PairingPacketHeader * |
header, |
|
|
std::string_view |
payload |
|
) |
| |
|
private |
◆ auth_
◆ cb_
◆ cert_
Data PairingConnectionCtx::cert_ |
|
private |
◆ fd_
◆ kExportedKeySize
constexpr size_t PairingConnectionCtx::kExportedKeySize = 64 |
|
staticconstexprprivate |
◆ opaque_
void* PairingConnectionCtx::opaque_ = nullptr |
|
private |
◆ peer_info_
PeerInfo PairingConnectionCtx::peer_info_ |
|
private |
◆ priv_key_
Data PairingConnectionCtx::priv_key_ |
|
private |
◆ pswd_
Data PairingConnectionCtx::pswd_ |
|
private |
◆ role_
Role PairingConnectionCtx::role_ |
|
private |
◆ state_
◆ their_info_
PeerInfo PairingConnectionCtx::their_info_ |
|
private |
◆ thread_
std::thread PairingConnectionCtx::thread_ |
|
private |
◆ tls_
The documentation for this struct was generated from the following file: