67 RetransmissionData data(meta, peer);
79 const RetransmissionData &data = _queue.front();
105 }
catch (
const std::bad_cast&) { };
115 }
catch (
const std::bad_cast&) { };
123 std::set<RetransmissionData>::const_iterator iter = _set.find(data);
125 if (iter != _set.end())
128 RetransmissionData data2 = (*iter);
134 if (data2.getCount() <= 8)
153 }
catch (
const std::bad_cast&) { };
164 const RetransmissionData &data = _queue.front();
179 }
catch (
const std::bad_cast&) { };
182 bool RetransmissionExtension::RetransmissionData::operator!=(
const RetransmissionData &obj)
187 if (id1 != id2)
return true;
188 if (obj.destination != destination)
return true;
193 bool RetransmissionExtension::RetransmissionData::operator==(
const RetransmissionData &obj)
198 if (id1 != id2)
return false;
199 if (obj.destination != destination)
return false;
204 dtn::data::Size RetransmissionExtension::RetransmissionData::getCount()
const
214 RetransmissionExtension::RetransmissionData& RetransmissionExtension::RetransmissionData::operator++(
int)
218 float backoff = ::pow((
float)retry, (
int)_count -1);
224 RetransmissionExtension::RetransmissionData& RetransmissionExtension::RetransmissionData::operator++()
228 float backoff = ::pow((
float)retry, (
int)_count -1);
235 : dtn::data::
BundleID(id), destination(d), _timestamp(0), _count(0), retry(r)
240 RetransmissionExtension::RetransmissionData::~RetransmissionData()