48 lines
974 B
C++
48 lines
974 B
C++
#ifndef FRER_MATCH_RECOVERY_FUNCTION_H
|
|
#define FRER_MATCH_RECOVERY_FUNCTION_H
|
|
|
|
#include "ns3/frer-base-recovery-function.h"
|
|
|
|
|
|
namespace ns3
|
|
{
|
|
|
|
class MatchRecoveryFunction : public BaseRecoveryFunction
|
|
{
|
|
public:
|
|
/**
|
|
* \brief Get the TypeId
|
|
*
|
|
* \return The TypeId for this class
|
|
*/
|
|
static TypeId GetTypeId();
|
|
|
|
/**
|
|
* \brief Create a MatchRecoveryFunction
|
|
*/
|
|
MatchRecoveryFunction();
|
|
|
|
/**
|
|
* Destroy a MatchRecoveryFunction
|
|
*
|
|
* This is the destructor for the MatchRecoveryFunction.
|
|
*/
|
|
~MatchRecoveryFunction();
|
|
|
|
// Delete copy constructor and assignment operator to avoid misuse
|
|
MatchRecoveryFunction& operator=(const MatchRecoveryFunction&) = delete;
|
|
MatchRecoveryFunction(const MatchRecoveryFunction&) = delete;
|
|
|
|
bool DoRecovery(uint16_t seqNumber) override;
|
|
|
|
protected:
|
|
|
|
|
|
private:
|
|
|
|
|
|
};
|
|
|
|
}
|
|
#endif /* FRER_MATCH_RECOVERY_FUNCTION_H */
|