Searched refs:kMagicHandshakeLen (Results 1 – 4 of 4) sorted by relevance
415 if (memcmp(input_buffer_, kMagicHandshake, kMagicHandshakeLen) != 0) { in ProcessIncoming()421 int cc = TEMP_FAILURE_RETRY(write(clientSock, input_buffer_, kMagicHandshakeLen)); in ProcessIncoming()422 if (cc != kMagicHandshakeLen) { in ProcessIncoming()423 … PLOG(ERROR) << "Failed writing handshake bytes (" << cc << " of " << kMagicHandshakeLen << ")"; in ProcessIncoming()427 ConsumeBytes(kMagicHandshakeLen); in ProcessIncoming()
472 if (memcmp(input_buffer_, kMagicHandshake, kMagicHandshakeLen) != 0) { in ProcessIncoming()478 int cc = TEMP_FAILURE_RETRY(write(clientSock, input_buffer_, kMagicHandshakeLen)); in ProcessIncoming()479 if (cc != kMagicHandshakeLen) { in ProcessIncoming()480 … PLOG(ERROR) << "Failed writing handshake bytes (" << cc << " of " << kMagicHandshakeLen << ")"; in ProcessIncoming()484 ConsumeBytes(kMagicHandshakeLen); in ProcessIncoming()
36 #define kMagicHandshakeLen (sizeof(kMagicHandshake)-1) macro
89 return (input_count_ >= kMagicHandshakeLen); in HaveFullPacket()