#include <TLVCreator.h>
Static Public Member Functions | |
static RIBDTLV * | ribd (BundleCore *core, const Table *nodes, const std::string &sender, const std::string &receiver) |
static RIBTLV * | rib (Oracle *oracle, const Dictionary &ribd, bool relay_node, bool accept_custody, bool internet_gw=false) |
static OfferTLV * | offer (Oracle *oracle, const Link *nexthop, const Dictionary &ribd, const Table &remote) |
static ResponseTLV * | response (Oracle *oracle, const BundleOfferList &offers, BundleResponseList &list, const Dictionary &ribd) |
Definition at line 35 of file TLVCreator.h.
static OfferTLV* prophet::TLVCreator::offer | ( | Oracle * | oracle, | |
const Link * | nexthop, | |||
const Dictionary & | ribd, | |||
const Table & | remote | |||
) | [inline, static] |
Definition at line 91 of file TLVCreator.h.
References prophet::Oracle::acks(), prophet::BundleEntryList< BundleEntryType >::begin(), prophet::BundleCore::bundles(), prophet::AckList::clone(), prophet::Oracle::core(), prophet::Decider::decider(), prophet::BundleEntryList< BundleEntryType >::empty(), prophet::BundleEntryList< BundleEntryType >::end(), prophet::ProphetParams::fs(), prophet::AckList::insert(), prophet::BundleCore::LOG_DEBUG, prophet::ProphetParams::max_forward(), prophet::Oracle::nodes(), prophet::Oracle::params(), prophet::BundleCore::print_log(), prophet::ProphetParams::relay_node(), prophet::Oracle::stats(), and prophet::FwdStrategy::strategy().
Referenced by prophet::Encounter::send_offer().
static ResponseTLV* prophet::TLVCreator::response | ( | Oracle * | oracle, | |
const BundleOfferList & | offers, | |||
BundleResponseList & | list, | |||
const Dictionary & | ribd | |||
) | [inline, static] |
Definition at line 159 of file TLVCreator.h.
References prophet::Oracle::ack(), prophet::Oracle::acks(), prophet::BundleResponseList::add_response(), prophet::BundleEntryList< BundleEntryType >::back(), prophet::BundleEntryList< BundleEntryType >::begin(), prophet::BundleCore::bundles(), prophet::Oracle::core(), prophet::BundleTLVEntry::creation_ts(), custody, prophet::BundleCore::custody_accepted(), prophet::Dictionary::dump(), prophet::BundleEntryList< BundleEntryType >::end(), prophet::BundleCore::find(), prophet::Dictionary::find(), prophet::AckList::insert(), prophet::AckList::is_ackd(), prophet::BundleCore::LOG_DEBUG, prophet::BundleCore::print_log(), prophet::BundleTLVEntry::seqno(), and prophet::BundleTLVEntry::sid().
Referenced by prophet::Encounter::send_response().
static RIBTLV* prophet::TLVCreator::rib | ( | Oracle * | oracle, | |
const Dictionary & | ribd, | |||
bool | relay_node, | |||
bool | accept_custody, | |||
bool | internet_gw = false | |||
) | [inline, static] |
Definition at line 60 of file TLVCreator.h.
References prophet::Table::begin(), prophet::Oracle::core(), prophet::Dictionary::dump(), prophet::Table::end(), prophet::Dictionary::find(), prophet::Dictionary::INVALID_SID, prophet::BundleCore::LOG_DEBUG, prophet::Oracle::nodes(), prophet::Node::p_value(), and prophet::BundleCore::print_log().
Referenced by prophet::Encounter::send_dictionary_rib().
static RIBDTLV* prophet::TLVCreator::ribd | ( | BundleCore * | core, | |
const Table * | nodes, | |||
const std::string & | sender, | |||
const std::string & | receiver | |||
) | [inline, static] |
Definition at line 37 of file TLVCreator.h.
References prophet::Table::begin(), prophet::Dictionary::dump(), prophet::Table::end(), prophet::Dictionary::find(), prophet::BundleCore::get_route(), prophet::Dictionary::insert(), and prophet::Dictionary::INVALID_SID.
Referenced by prophet::Encounter::send_dictionary_rib().