summaryrefslogtreecommitdiff
path: root/apps/Gateway/Gateway/Routing_Entry.cpp
blob: cc270cfac3ac406b3d875baab155164beb199579 (plain)
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
39
40
41
42
43
44
45
46
47
// Defines an entry in the Routing Table.
// $Id$

#include "Routing_Entry.h"

Routing_Entry::Routing_Entry (int validity_interval)
  : validity_interval_ (validity_interval)
{
  ACE_NEW (this->destinations_, Routing_Entry::ENTRY_SET);
}

Routing_Entry::~Routing_Entry (void)
{
  delete this->destinations_;
}

// Get the associated set of destinations.

Routing_Entry::ENTRY_SET *
Routing_Entry::destinations (void)
{
  return this->destinations_;
}

// Set the associated set of destinations.

void 
Routing_Entry::destinations (Routing_Entry::ENTRY_SET *s)
{
  this->destinations_ = s;
}

// Get the current validity interval for this route.

int
Routing_Entry::validity_interval (void)
{
  return this->validity_interval_;
}

// Set the current validity interval for this route.

void
Routing_Entry::validity_interval (int vi)
{
  this->validity_interval_ = vi;
}