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::UDPPeerAcknowledge Struct Reference

Start information for a peer joining a replicator network. More...

#include <UDPPeerAcknowledge.hxx>

Public Types

typedef UDPPeerAcknowledge __ThisDCOType__
 typedef for internal reference
 

Public Member Functions

 UDPPeerAcknowledge ()
 default constructor.
 
 UDPPeerAcknowledge (const vstring &peerdata, const uint16_t &peer_id, const bool &reject)
 Constructor with arguments.
 
 UDPPeerAcknowledge (const UDPPeerAcknowledge &o)
 copy constructor.
 
 UDPPeerAcknowledge (::dueca::AmorphReStore &r)
 constructor to restore an UDPPeerAcknowledge from amorphous storage.
 
 ~UDPPeerAcknowledge ()
 destructor.
 
void packData (::dueca::AmorphStore &s) const
 packs the UDPPeerAcknowledge into amorphous storage.
 
void packDataDiff (::dueca::AmorphStore &s, const UDPPeerAcknowledge &ref) const
 packs the UDPPeerAcknowledge into amorphous storage.
 
void unPackData (::dueca::AmorphReStore &s)
 unpacks the UDPPeerAcknowledge from an amorphous storage.
 
void unPackDataDiff (::dueca::AmorphReStore &s)
 unpacks the differences for UDPPeerAcknowledge from an amorphous storage.
 
bool operator== (const UDPPeerAcknowledge &o) const
 Test for equality.
 
bool operator!= (const UDPPeerAcknowledge &o) const
 Test for inequality.
 
UDPPeerAcknowledgeoperator= (const UDPPeerAcknowledge &o)
 Assignment operator.
 
std::ostream & print (std::ostream &s) const
 prints the UDPPeerAcknowledge 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, UDPPeerAcknowledge *&o)
 placement "new", needed for stl.
 

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

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

Member Function Documentation

◆ operator new()

static void * dueca::UDPPeerAcknowledge::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::UDPPeerAcknowledge::packDataDiff ( ::dueca::AmorphStore & s,
const UDPPeerAcknowledge & ref ) const

packs the UDPPeerAcknowledge into amorphous storage.

only differences with a previous object are packed.


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