OverSim
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
PeerInfo.cc
Go to the documentation of this file.
1
// Copyright (C) 2006 Institut fuer Telematik, Universitaet Karlsruhe (TH)
2
//
3
// This program is free software; you can redistribute it and/or
4
// modify it under the terms of the GNU General Public License
5
// as published by the Free Software Foundation; either version 2
6
// of the License, or (at your option) any later version.
7
//
8
// This program is distributed in the hope that it will be useful,
9
// but WITHOUT ANY WARRANTY; without even the implied warranty of
10
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
// GNU General Public License for more details.
12
//
13
// You should have received a copy of the GNU General Public License
14
// along with this program; if not, write to the Free Software
15
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16
//
17
24
#include "
PeerInfo.h
"
25
26
PeerInfo::PeerInfo
(uint32_t type,
int
moduleId, cObject** context)
27
{
28
malicious
=
false
;
29
this->moduleId =
moduleId
;
30
this->type =
type
;
31
this->
npsLayer
= -1;
// layer not determined yet
32
this->context =
context
;
33
}
34
35
void
PeerInfo::dummy
() {}
36
37
//public
38
39
std::ostream&
operator<<
(std::ostream& os,
const
PeerInfo
info)
40
{
41
os <<
"ModuleId: "
<< info.
moduleId
;
42
os <<
" TypeID: "
<< info.
type
;
43
44
if
(info.
npsLayer
>= 0) os <<
" NPS Layer: "
<< info.
npsLayer
;
45
return
os;
46
}
47
src
common
PeerInfo.cc
Generated on Fri Dec 7 2012 13:37:53 for OverSim by
1.8.1.2