DUECA/DUSIME
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
dueca::UDPPeerJoined Struct Reference

Notification message on the joining of a peer to a replicator network. More...

Public Types

typedef UDPPeerJoined __ThisDCOType__
 typedef for internal reference
 

Public Member Functions

 UDPPeerJoined ()
 default constructor. More...
 
 UDPPeerJoined (const vstring &netaddress, const uint16_t &peer_id)
 Constructor with arguments.
 
 UDPPeerJoined (const UDPPeerJoined &o)
 copy constructor. More...
 
 UDPPeerJoined (::dueca::AmorphReStore &r)
 constructor to restore an UDPPeerJoined from amorphous storage. More...
 
 ~UDPPeerJoined ()
 destructor. More...
 
void packData (::dueca::AmorphStore &s) const
 packs the UDPPeerJoined into amorphous storage. More...
 
void packDataDiff (::dueca::AmorphStore &s, const UDPPeerJoined &ref) const
 packs the UDPPeerJoined into amorphous storage. More...
 
void unPackData (::dueca::AmorphReStore &s)
 unpacks the UDPPeerJoined from an amorphous storage. More...
 
void unPackDataDiff (::dueca::AmorphReStore &s)
 unpacks the differences for UDPPeerJoined from an amorphous storage. More...
 
bool operator== (const UDPPeerJoined &o) const
 Test for equality. More...
 
bool operator!= (const UDPPeerJoined &o) const
 Test for inequality. More...
 
UDPPeerJoinedoperator= (const UDPPeerJoined &o)
 Assignment operator. More...
 
std::ostream & print (std::ostream &s) const
 prints the UDPPeerJoined to a stream. More...
 

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, UDPPeerJoined *&o)
 placement "new", needed for stl. More...
 

Public Attributes

vstring netaddress
 network address of the joining peer
 
uint16_t peer_id
 proposed peer id – for matching a possible response
 

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...
 

Detailed Description

Notification message on the joining of a peer to a replicator network.

Constructor & Destructor Documentation

◆ UDPPeerJoined() [1/3]

dueca::UDPPeerJoined::UDPPeerJoined ( )

default constructor.

◆ UDPPeerJoined() [2/3]

dueca::UDPPeerJoined::UDPPeerJoined ( const UDPPeerJoined o)

copy constructor.

◆ UDPPeerJoined() [3/3]

dueca::UDPPeerJoined::UDPPeerJoined ( ::dueca::AmorphReStore r)

constructor to restore an UDPPeerJoined from amorphous storage.

◆ ~UDPPeerJoined()

dueca::UDPPeerJoined::~UDPPeerJoined ( )

destructor.

Member Function Documentation

◆ operator new() [1/2]

static void* dueca::UDPPeerJoined::operator new ( size_t  size)
static

new operator "new", which places objects not on a heap, but in one of the memory arenas.

This to speed up memory management.

◆ operator delete()

static void dueca::UDPPeerJoined::operator delete ( void *  p)
static

new operator "delete", to go with the new version of operator new.

◆ operator new() [2/2]

static void* dueca::UDPPeerJoined::operator new ( size_t  size,
UDPPeerJoined *&  o 
)
inlinestatic

placement "new", needed for stl.

◆ packData()

void dueca::UDPPeerJoined::packData ( ::dueca::AmorphStore s) const

packs the UDPPeerJoined into amorphous storage.

◆ packDataDiff()

void dueca::UDPPeerJoined::packDataDiff ( ::dueca::AmorphStore s,
const UDPPeerJoined ref 
) const

packs the UDPPeerJoined into amorphous storage.

only differences with a previous object are packed.

◆ unPackData()

void dueca::UDPPeerJoined::unPackData ( ::dueca::AmorphReStore s)

unpacks the UDPPeerJoined from an amorphous storage.

◆ unPackDataDiff()

void dueca::UDPPeerJoined::unPackDataDiff ( ::dueca::AmorphReStore s)

unpacks the differences for UDPPeerJoined from an amorphous storage.

◆ operator==()

bool dueca::UDPPeerJoined::operator== ( const UDPPeerJoined o) const

Test for equality.

◆ operator!=()

bool dueca::UDPPeerJoined::operator!= ( const UDPPeerJoined o) const
inline

Test for inequality.

◆ operator=()

UDPPeerJoined& dueca::UDPPeerJoined::operator= ( const UDPPeerJoined o)

Assignment operator.

◆ print()

std::ostream& dueca::UDPPeerJoined::print ( std::ostream &  s) const

prints the UDPPeerJoined to a stream.

Member Data Documentation

◆ classname

const char* const dueca::UDPPeerJoined::classname
static

The name of this class.

◆ magic_check_number

const uint32_t dueca::UDPPeerJoined::magic_check_number
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.


The documentation for this struct was generated from the following file: