Ignore:
Timestamp:
Jan 25, 2010, 10:50:57 AM (15 years ago)
Author:
Christoph Mayer
Message:

-timer delete fix (noch auskommentiert), -interface cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/SpoVNetProperties.cpp

    r3690 r7468  
    4444
    4545SpoVNetProperties::SpoVNetProperties() :
    46                 name( Name::random() ), type( CHORD_OVERLAY ), idLength( 192 ),
    47                 initiator( NodeID::UNSPECIFIED ), hidden( false ) {
    48 
    49         id = name.toSpoVNetId();
     46                type( CHORD_OVERLAY ){
    5047}
    5148
    5249SpoVNetProperties::SpoVNetProperties(const SpoVNetProperties& copy) :
    53                 name( copy.name ), id( copy.id ),
    54                 type( copy.type ), idLength( copy.idLength ),
    55                 initiator( copy.initiator ), hidden( copy.hidden ) {
     50                type( copy.type ){
    5651}
    5752
    5853SpoVNetProperties::~SpoVNetProperties() {
    59 }
    60 
    61 const Name& SpoVNetProperties::getName() const {
    62         return name;
    63 }
    64 
    65 const SpoVNetID& SpoVNetProperties::getId() const {
    66         return id;
    67 }
    68 
    69 const NodeID& SpoVNetProperties::getInitiator() const {
    70         return initiator;
    71 }
    72 
    73 uint16_t SpoVNetProperties::getIdentifierLength() const {
    74         return idLength;
    7554}
    7655
     
    7958}
    8059
    81 bool SpoVNetProperties::isHidden() const {
    82         return hidden;
    83 }
    84 
    8560std::string SpoVNetProperties::toString() const {
    8661        std::ostringstream buf;
    8762        buf << "spovnet"
    88                 << " name=" << name.toString()
    89                 << " id=" << id.toString()
    90                 << " overlay_type=" << type
    91                 << " id_length=" << idLength
    92                 << " initiator=" << initiator
    93                 << " hidden=" << hidden;
     63                << " overlay_type=" << type;
    9464        return buf.str();
    9565}
Note: See TracChangeset for help on using the changeset viewer.