55 const RetransmissionData &data = _queue.front();
78 }
catch (
const std::bad_cast&) { };
88 }
catch (
const std::bad_cast&) { };
98 }
catch (
const std::bad_cast&) { };
103 const RetransmissionData data(requeue.
_bundle, requeue.
_peer);
106 std::set<RetransmissionData>::const_iterator iter = _set.find(data);
108 if (iter != _set.end())
111 RetransmissionData data2 = (*iter);
117 if (data2.getCount() <= 8)
136 }
catch (
const std::bad_cast&) { };
147 const RetransmissionData &data = _queue.front();
162 }
catch (
const std::bad_cast&) { };
165 bool RetransmissionExtension::RetransmissionData::operator!=(
const RetransmissionData &obj)
170 if (id1 != id2)
return true;
171 if (obj.destination != destination)
return true;
176 bool RetransmissionExtension::RetransmissionData::operator==(
const RetransmissionData &obj)
181 if (id1 != id2)
return false;
182 if (obj.destination != destination)
return false;
187 dtn::data::Size RetransmissionExtension::RetransmissionData::getCount()
const
197 RetransmissionExtension::RetransmissionData& RetransmissionExtension::RetransmissionData::operator++(
int)
201 float backoff = ::pow((
float)retry, (
int)_count -1);
207 RetransmissionExtension::RetransmissionData& RetransmissionExtension::RetransmissionData::operator++()
211 float backoff = ::pow((
float)retry, (
int)_count -1);
218 : dtn::data::
BundleID(id), destination(d), _timestamp(0), _count(0), retry(r)
223 RetransmissionExtension::RetransmissionData::~RetransmissionData()