Set the state
| 676 | // Set the state |
| 677 | // |
| 678 | void NetworkSequenceCollection::SetState( |
| 679 | NetworkAssemblyState newState) |
| 680 | { |
| 681 | logger(2) << "SetState " << newState |
| 682 | << " (was " << m_state << ")\n"; |
| 683 | |
| 684 | // Ensure there are no pending messages |
| 685 | assert(m_comm.transmitBufferEmpty()); |
| 686 | |
| 687 | m_state = newState; |
| 688 | |
| 689 | // Reset the checkpoint counter |
| 690 | m_numReachedCheckpoint = 0; |
| 691 | m_checkpointSum = 0; |
| 692 | } |
| 693 | |
| 694 | /** Receive and dispatch packets. |
| 695 | * @return the number of packets received |
nothing calls this directly
no test coverage detected