-
Notifications
You must be signed in to change notification settings - Fork 0
/
BroadcastHandler.h
38 lines (33 loc) · 999 Bytes
/
BroadcastHandler.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*************************************************************************
> File Name: BroadcastHandler.h
> Author: Weidong, ZHANG
> Mail: [email protected]
> Created Time: Sun 30 Nov 2014 10:32:14 AM PST
************************************************************************/
#ifndef BROADCAST_HANDLER_H
#define BROADCAST_HANDLER_H
#include <arpa/inet.h>
#include <iostream>
#include <map>
#include "pdfs.h"
#include "Handler.h"
#include "Cluster.h"
namespace pdfs{
class BroadcastHandler: public Handler
{
public:
unsigned virtual executeThis();
BroadcastHandler(int id, int sfd) : Handler(id, sfd)
{
//this->clusterMap = clusterMap;
localNodeStatus.starttime = time(0);
}
~BroadcastHandler()
{
//cout << "Deleting BroadcastHandler" << id << "\t address=" << this << endl;
}
private:
NodeStatus localNodeStatus;
}; // end class BroadcastHandler
} // end namespace
#endif