Download this file

IntRoutingUpdate.cc    32 lines (26 with data), 575 Bytes

 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
/*
* IntRoutingUpdate.cc
*
* Created on: Mar 18, 2015
* Author: gaixas1
*/
#include <IntRoutingUpdate.h>
IntRoutingUpdate::IntRoutingUpdate(){}
IntRoutingUpdate::IntRoutingUpdate(const Address &addr){
dstAddr = addr;
}
IntRoutingUpdate::~IntRoutingUpdate(){}
// Getters.
Address IntRoutingUpdate::getDestination(){
return dstAddr;
}
Address IntRoutingUpdate::getSource(){
return srcAddr;
}
// Setters.
void IntRoutingUpdate::setDestination(Address addr){
dstAddr = addr;
}
void IntRoutingUpdate::setSource(Address addr){
srcAddr = addr;
}