DUECA/DUSIME
Loading...
Searching...
No Matches
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...

#include <UDPPeerJoined.hxx>

Public Types

typedef UDPPeerJoined __ThisDCOType__
 typedef for internal reference
 

Public Member Functions

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

Static Public Member Functions

static voidoperator new (size_t size)
 new operator "new", which places objects not on a heap, but in one of the memory arenas.
 
static void operator delete (void *p)
 new operator "delete", to go with the new version of operator new.
 
static voidoperator new (size_t size, UDPPeerJoined *&o)
 placement "new", needed for stl.
 

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

Detailed Description

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

Member Function Documentation

◆ operator new()

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.

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


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