36 lines
998 B
C++
36 lines
998 B
C++
#pragma once
|
|
|
|
#ifndef PEER_RECONNECTED_EVENT_H
|
|
#define PEER_RECONNECTED_EVENT_H
|
|
|
|
#include <core/event/group_event.h>
|
|
|
|
#include "EventTypes.h"
|
|
#include "common/Defines.h"
|
|
#include "common/transport/TransportAddress.h"
|
|
|
|
namespace ubeeme {
|
|
namespace moversight {
|
|
|
|
class MOV_EXPORT PeerReconnectedEvent: public GroupEvent<EventTypes> {
|
|
|
|
public:
|
|
PeerReconnectedEvent(PeerID const &pId, TransportAddress const &ta);
|
|
virtual ~PeerReconnectedEvent();
|
|
static EventType getType();
|
|
|
|
PeerID const &getReconnectedPeerID() const;
|
|
void setReconnectePeerID(PeerID const &pId);
|
|
|
|
TransportAddress const &getReconnectedPeerTA() const;
|
|
void setReconnectePeerTA(TransportAddress const &aTa);
|
|
|
|
private:
|
|
PeerID reconnectedPeerID;
|
|
TransportAddress reconnectedPeerTA;
|
|
};
|
|
}
|
|
} // namespace ubeeme
|
|
|
|
#endif // PEER_RECONNECTED_EVENT_H
|