DUECA/DUSIME
|
Start information for a peer joining a replicator network. More...
Public Types | |
typedef ReplicatorPeerAcknowledge | __ThisDCOType__ |
typedef for internal reference | |
Static Public Member Functions | |
static void * | operator new (size_t size) |
new operator "new", which places objects not on a heap, but in one of the memory arenas. More... | |
static void | operator delete (void *p) |
new operator "delete", to go with the new version of operator new. More... | |
static void * | operator new (size_t size, ReplicatorPeerAcknowledge *&o) |
placement "new", needed for stl. More... | |
Public Attributes | |
vstring | peerdata |
Data for the peer, if the master replicator has a channel connection to an application module that vets peer connections, the peer data returned by that module is passed to the newly connected peer. | |
uint16_t | peer_id |
issued peer id – for matching response | |
bool | reject |
rejection flag | |
Static Public Attributes | |
static const char *const | classname |
The name of this class. More... | |
static const uint32_t | magic_check_number |
a "magic" number, hashed out of the class definition, that will be used to check consistency of the sent objects across the dueca nodes. More... | |
Start information for a peer joining a replicator network.
With an object of this type, the application at the master end can accept or reject peer connections. Data for the peer (limited to 1K) can be added.
At the peer end, this informs of the ID issued by the master, and of optionally peer data from the application
dueca::ReplicatorPeerAcknowledge::ReplicatorPeerAcknowledge | ( | ) |
default constructor.
dueca::ReplicatorPeerAcknowledge::ReplicatorPeerAcknowledge | ( | const ReplicatorPeerAcknowledge & | o | ) |
copy constructor.
dueca::ReplicatorPeerAcknowledge::ReplicatorPeerAcknowledge | ( | ::dueca::AmorphReStore & | r | ) |
constructor to restore an ReplicatorPeerAcknowledge from amorphous storage.
dueca::ReplicatorPeerAcknowledge::~ReplicatorPeerAcknowledge | ( | ) |
destructor.
|
static |
new operator "new", which places objects not on a heap, but in one of the memory arenas.
This to speed up memory management.
|
static |
new operator "delete", to go with the new version of operator new.
|
inlinestatic |
placement "new", needed for stl.
void dueca::ReplicatorPeerAcknowledge::packData | ( | ::dueca::AmorphStore & | s | ) | const |
packs the ReplicatorPeerAcknowledge into amorphous storage.
void dueca::ReplicatorPeerAcknowledge::packDataDiff | ( | ::dueca::AmorphStore & | s, |
const ReplicatorPeerAcknowledge & | ref | ||
) | const |
packs the ReplicatorPeerAcknowledge into amorphous storage.
only differences with a previous object are packed.
void dueca::ReplicatorPeerAcknowledge::unPackData | ( | ::dueca::AmorphReStore & | s | ) |
unpacks the ReplicatorPeerAcknowledge from an amorphous storage.
void dueca::ReplicatorPeerAcknowledge::unPackDataDiff | ( | ::dueca::AmorphReStore & | s | ) |
unpacks the differences for ReplicatorPeerAcknowledge from an amorphous storage.
bool dueca::ReplicatorPeerAcknowledge::operator== | ( | const ReplicatorPeerAcknowledge & | o | ) | const |
Test for equality.
|
inline |
Test for inequality.
ReplicatorPeerAcknowledge& dueca::ReplicatorPeerAcknowledge::operator= | ( | const ReplicatorPeerAcknowledge & | o | ) |
Assignment operator.
std::ostream& dueca::ReplicatorPeerAcknowledge::print | ( | std::ostream & | s | ) | const |
prints the ReplicatorPeerAcknowledge to a stream.
|
static |
The name of this class.
|
static |
a "magic" number, hashed out of the class definition, that will be used to check consistency of the sent objects across the dueca nodes.