Searched refs:pPeer (Results 1 – 1 of 1) sorted by relevance
417 static bool haveFullPacket(Peer* pPeer) in haveFullPacket() argument421 if (pPeer->awaitingHandshake) in haveFullPacket()422 return (pPeer->inputCount >= kMagicHandshakeLen); in haveFullPacket()424 if (pPeer->inputCount < 4) in haveFullPacket()427 length = get4BE(pPeer->inputBuffer); in haveFullPacket()428 return (pPeer->inputCount >= length); in haveFullPacket()437 static void consumeBytes(Peer* pPeer, int count) in consumeBytes() argument440 assert(count <= pPeer->inputCount); in consumeBytes()442 if (count == pPeer->inputCount) { in consumeBytes()443 pPeer->inputCount = 0; in consumeBytes()[all …]