132 const uint32_t mask = bitmask_for_handshake_type(msg_type);
134 m_hand_received_mask |= mask;
136 const bool ok = (m_hand_expecting_mask & mask) != 0;
139 const uint32_t seen_so_far = m_hand_received_mask & ~mask;
141 std::ostringstream msg;
145 if(m_hand_expecting_mask == 0) {
146 msg <<
" not expecting messages";
148 msg <<
" expected " << handshake_mask_to_string(m_hand_expecting_mask,
'|');
151 if(seen_so_far != 0) {
152 msg <<
" seen " << handshake_mask_to_string(seen_so_far,
'+');
162 m_hand_expecting_mask = 0;