Files
scandocs/uni/masterarbeit/source/moversight/ut/timer/UnicastMessageRetransmitTimer.h
2014-06-30 13:58:10 +02:00

48 lines
1.3 KiB
C++

/*
* File: UnicastMessageRetransmitTimer.h
* Author: jgaebler
*
* Created on October 29, 2012, 12:02 PM
*/
#pragma once
#ifndef UNICASTMESSAGERETRANSMITTIMER_H
#define UNICASTMESSAGERETRANSMITTIMER_H
#include "common/timer/ReferenceTimer.h"
#include "common/transport/MessageReference.h"
#include "common/transport/TransportAddress.h"
namespace ubeeme {
namespace moversight {
class UnicastTransfer;
/**
* @brief Defines a timer to monitor a unicast message.
* @class UnicastMessageRetransmitTimer
* @author Jan Gäbler
* @ingroup Moversight
*/
class UnicastMessageRetransmitTimer : public ReferenceTimer<MessageReference> {
public:
UnicastMessageRetransmitTimer(UnicastTransfer & transfer);
UnicastMessageRetransmitTimer(const UnicastMessageRetransmitTimer & orig);
virtual ~UnicastMessageRetransmitTimer();
UnicastMessageRetransmitTimer & operator=(const UnicastMessageRetransmitTimer & other);
virtual void timeout();
UnicastMessageRetransmitTimer * dup();
TransportAddress getSource();
void setSource(const TransportAddress & ta);
};
}
}
#endif /* UNICASTMESSAGERETRANSMITTIMER_H */