46 lines
1.1 KiB
C++
46 lines
1.1 KiB
C++
|
|
#pragma once
|
|
|
|
#ifndef SPLITANNOUNCE_H
|
|
#define SPLITANNOUNCE_H
|
|
|
|
#include "common/Defines.h"
|
|
#include "common/container/PeerIDList.h"
|
|
#include "mt/msg/MulticastMessage.h"
|
|
|
|
namespace ubeeme {
|
|
namespace moversight {
|
|
|
|
class Dispatcher;
|
|
|
|
class SplitAnnounce : public MulticastMessage {
|
|
|
|
public:
|
|
SplitAnnounce();
|
|
SplitAnnounce(const SplitAnnounce & other);
|
|
virtual ~SplitAnnounce();
|
|
|
|
SplitAnnounce * dup() const;
|
|
SplitAnnounce & operator=(const SplitAnnounce & other);
|
|
|
|
void handleReceive(Dispatcher & dis);
|
|
void handleDeliver(Dispatcher & dis, const PeerIDList & missedPeers);
|
|
|
|
void set(Archive &archive);
|
|
|
|
// field getter/setter methods
|
|
unsigned char getOptions() const;
|
|
virtual void setOptions( unsigned char options);
|
|
|
|
const PeerIDList& getSplitPeers() const;
|
|
virtual void setSplitPeers( const PeerIDList& splitPeers);
|
|
|
|
private:
|
|
unsigned char options;
|
|
PeerIDList splitPeers;
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif /* SPLITANNOUNCE_H */
|