IBR-DTNSuite  0.8
dtn::net::DiscoveryAnnouncement Class Reference

#include <DiscoveryAnnouncement.h>

List of all members.

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< DiscoveryServicegetServices () const
void clearServices ()
void addService (DiscoveryService service)
const DiscoveryServicegetService (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)

Detailed Description

Definition at line 22 of file DiscoveryAnnouncement.h.


Member Enumeration Documentation

Enumerator:
DTND_IPDISCOVERY 
DISCO_VERSION_00 
DISCO_VERSION_01 

Definition at line 38 of file DiscoveryAnnouncement.h.


Constructor & Destructor Documentation


Member Function Documentation

Definition at line 60 of file DiscoveryAnnouncement.cpp.

Definition at line 363 of file DiscoveryAnnouncement.cpp.

References dtn::data::EID::getString().

Here is the call graph for this function:


Friends And Related Function Documentation

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.


The documentation for this class was generated from the following files: