forest-net
an overlay networks for large-scale virtual worlds
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
RepeatHandler.h
Go to the documentation of this file.
1
9
#ifndef REPEATHANDLER_H
10
#define REPEATHANDLER_H
11
12
#include <queue>
13
#include <map>
14
15
#include "stdinc.h"
16
#include "
Forest.h
"
17
#include "Pair.h"
18
#include "Dheap.h"
19
#include "Hash.h"
20
#include "HashMap.h"
21
22
using namespace
std::chrono;
23
using namespace
grafalgo;
24
25
namespace
forest {
26
28
class
RepeatHandler
{
29
public
:
30
RepeatHandler
(
int
);
31
~
RepeatHandler
();
32
33
int
find(
fAdr_t
, int64_t);
34
bool
saveReq(
int
,
fAdr_t
, int64_t, int64_t);
35
int
saveRep(
int
,
fAdr_t
, int64_t);
36
int
expired(int64_t);
37
private
:
38
int
n;
39
HashMap<Pair<fAdr_t,int64_t>, int, Hash::s32s64> *
pmap
;
41
Dheap<int64_t> *
deadlines
;
42
};
43
44
}
// ends namespace
45
46
#endif
forest-net
cpp
include
RepeatHandler.h
Generated on Mon Aug 4 2014 11:13:35 for forest-net by
1.8.4