Home
last modified time | relevance | path

Searched refs:kHandshakeLength (Results 1 – 2 of 2) sorted by relevance

/system/core/fastboot/device/
Dtcp_client.cpp30 static constexpr size_t kHandshakeLength = 4; variable
144 char buffer[kHandshakeLength + 1]; in ListenFastbootSocket()
145 buffer[kHandshakeLength] = '\0'; in ListenFastbootSocket()
146 if (socket_->ReceiveAll(buffer, kHandshakeLength, kHandshakeTimeoutMs) != in ListenFastbootSocket()
147 kHandshakeLength) { in ListenFastbootSocket()
168 if (!socket_->Send(handshake_message.c_str(), kHandshakeLength)) { in ListenFastbootSocket()
/system/core/fastboot/
Dtcp.cpp37 static constexpr size_t kHandshakeLength = 4; variable
97 if (!socket_->Send(handshake_message.c_str(), kHandshakeLength)) { in InitializeProtocol()
103 char buffer[kHandshakeLength + 1]; in InitializeProtocol()
104 buffer[kHandshakeLength] = '\0'; in InitializeProtocol()
105 if (socket_->ReceiveAll(buffer, kHandshakeLength, kHandshakeTimeoutMs) != kHandshakeLength) { in InitializeProtocol()