IBR-DTNSuite
0.8
|
#include <DiscoveryAnnouncement.h>
Public Types | |
enum | DiscoveryVersion { DTND_IPDISCOVERY = 0x00, DISCO_VERSION_00 = 0x01, DISCO_VERSION_01 = 0x02 } |
Public Member Functions | |
DiscoveryAnnouncement (const DiscoveryVersion version=DISCO_VERSION_00, dtn::data::EID eid=dtn::data::EID()) | |
virtual | ~DiscoveryAnnouncement () |
dtn::data::EID | getEID () const |
const std::list< DiscoveryService > | getServices () const |
void | clearServices () |
void | addService (DiscoveryService service) |
const DiscoveryService & | getService (string name) const |
string | toString () const |
void | setSequencenumber (u_int16_t sequence) |
bool | isShort () |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const DiscoveryAnnouncement &announcement) |
std::istream & | operator>> (std::istream &stream, DiscoveryAnnouncement &announcement) |
Definition at line 22 of file DiscoveryAnnouncement.h.
Definition at line 38 of file DiscoveryAnnouncement.h.
dtn::net::DiscoveryAnnouncement::DiscoveryAnnouncement | ( | const DiscoveryVersion | version = DISCO_VERSION_00 , |
dtn::data::EID | eid = dtn::data::EID() |
||
) |
Definition at line 22 of file DiscoveryAnnouncement.cpp.
dtn::net::DiscoveryAnnouncement::~DiscoveryAnnouncement | ( | ) | [virtual] |
Definition at line 27 of file DiscoveryAnnouncement.cpp.
void dtn::net::DiscoveryAnnouncement::addService | ( | DiscoveryService | service | ) |
Definition at line 73 of file DiscoveryAnnouncement.cpp.
Referenced by dtn::net::IPNDAgent::componentRun(), dtn::net::IPNDAgent::sendAnnoucement(), and dtn::net::LOWPANConvergenceLayer::sendAnnoucement().
Definition at line 55 of file DiscoveryAnnouncement.cpp.
Referenced by dtn::net::IPNDAgent::sendAnnoucement(), dtn::net::LOWPANConvergenceLayer::sendAnnoucement(), and dtn::net::DatagramConvergenceLayer::sendAnnoucement().
Definition at line 45 of file DiscoveryAnnouncement.cpp.
Referenced by dtn::net::DiscoveryAgent::received().
const DiscoveryService & dtn::net::DiscoveryAnnouncement::getService | ( | string | name | ) | const |
Definition at line 60 of file DiscoveryAnnouncement.cpp.
const list< DiscoveryService > dtn::net::DiscoveryAnnouncement::getServices | ( | ) | const |
Definition at line 50 of file DiscoveryAnnouncement.cpp.
Referenced by dtn::net::IPNDAgent::componentRun(), and dtn::net::DiscoveryAgent::received().
Definition at line 31 of file DiscoveryAnnouncement.cpp.
References DISCO_VERSION_00, and DISCO_VERSION_01.
Referenced by dtn::net::IPNDAgent::componentRun().
void dtn::net::DiscoveryAnnouncement::setSequencenumber | ( | u_int16_t | sequence | ) |
Definition at line 78 of file DiscoveryAnnouncement.cpp.
Referenced by dtn::net::IPNDAgent::sendAnnoucement(), dtn::net::LOWPANConvergenceLayer::sendAnnoucement(), and dtn::net::DatagramConvergenceLayer::sendAnnoucement().
string dtn::net::DiscoveryAnnouncement::toString | ( | ) | const |
Definition at line 363 of file DiscoveryAnnouncement.cpp.
References dtn::data::EID::getString().
std::ostream& operator<< | ( | std::ostream & | stream, |
const DiscoveryAnnouncement & | announcement | ||
) | [friend] |
Definition at line 83 of file DiscoveryAnnouncement.cpp.
std::istream& operator>> | ( | std::istream & | stream, |
DiscoveryAnnouncement & | announcement | ||
) | [friend] |
Definition at line 208 of file DiscoveryAnnouncement.cpp.