#include <source/ariba/overlay/modules/chord/messages/Discovery.h>
Inherits ariba::utility::Message.
Public Types | |
enum | type_ { invalid = 0, normal = 1, successor = 2, predecessor = 3 } |
Public Member Functions | |
Discovery (const Discovery &msg) | |
Discovery (type_ type=invalid, uint8_t ttl=4, const EndpointDescriptor &endpoint=EndpointDescriptor::UNSPECIFIED()) | |
virtual | ~Discovery () |
type_ | getType () const |
void | setType (type_ type) |
uint8_t | getTTL () const |
void | setTTL (uint8_t ttl) |
const EndpointDescriptor & | getEndpoint () const |
void | setEndpoint (const EndpointDescriptor &endpoint) |
Private Attributes | |
VSERIALIZEABLE | |
uint8_t | type |
uint8_t | ttl |
EndpointDescriptor | endpoint |
Definition at line 61 of file Discovery.h.
ariba::overlay::Discovery::Discovery | ( | const Discovery & | msg | ) | [inline] |
Definition at line 71 of file Discovery.h.
ariba::overlay::Discovery::Discovery | ( | type_ | type = invalid , |
|
uint8_t | ttl = 4 , |
|||
const EndpointDescriptor & | endpoint = EndpointDescriptor::UNSPECIFIED() | |||
) | [inline] |
Definition at line 74 of file Discovery.h.
ariba::overlay::Discovery::~Discovery | ( | ) | [virtual] |
Definition at line 46 of file Discovery.cpp.
const EndpointDescriptor& ariba::overlay::Discovery::getEndpoint | ( | ) | const [inline] |
Definition at line 96 of file Discovery.h.
References endpoint.
Referenced by ariba::overlay::Chord::onMessage().
uint8_t ariba::overlay::Discovery::getTTL | ( | ) | const [inline] |
Definition at line 88 of file Discovery.h.
References ttl.
Referenced by ariba::overlay::Chord::onMessage().
type_ ariba::overlay::Discovery::getType | ( | ) | const [inline] |
Definition at line 80 of file Discovery.h.
References type.
Referenced by ariba::overlay::Chord::onMessage().
void ariba::overlay::Discovery::setEndpoint | ( | const EndpointDescriptor & | endpoint | ) | [inline] |
Definition at line 100 of file Discovery.h.
void ariba::overlay::Discovery::setTTL | ( | uint8_t | ttl | ) | [inline] |
void ariba::overlay::Discovery::setType | ( | type_ | type | ) | [inline] |
uint8_t ariba::overlay::Discovery::ttl [private] |
uint8_t ariba::overlay::Discovery::type [private] |
Definition at line 62 of file Discovery.h.