Ignore:
Timestamp:
Feb 18, 2009, 11:39:30 AM (15 years ago)
Author:
mies
Message:

implemented bootstrap info parser

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/AribaModule.h

    r2434 r2452  
    141141        class BootstrapNode {
    142142        public:
     143                inline BootstrapNode() : timestamp(0), desc(NULL) {
     144
     145                }
     146                inline BootstrapNode(uint32_t timestamp,
     147                                communication::EndpointDescriptor* desc) :
     148                        timestamp(timestamp), desc(desc) {
     149
     150                }
     151                ~BootstrapNode();
    143152                uint32_t timestamp;
    144153                communication::EndpointDescriptor* desc;
     
    149158        public:
    150159                Name spovnetName;
    151                 vector<BootstrapNode> desc;
     160                vector<BootstrapNode> nodes;
    152161        };
    153162        vector<BootstrapInfo> bootstrapNodes;
     
    155164protected:
    156165        // members
    157         string bootstrapFile;   //< file with bootstrap information
    158         bool started;                   //< flag, if module has been started
     166        string bootstrapFile; //< file with bootstrap information
     167        bool started; //< flag, if module has been started
    159168
    160169        // bootstrap node management
    161         void addBootstrapNode(const Name& spovnet, const Name& node,
     170        void addBootstrapNode(const Name& spovnet,
    162171                        communication::EndpointDescriptor* desc);
    163172        const communication::EndpointDescriptor* getBootstrapNode(
    164                         const Name& spovnet);
     173                        const Name& spovnet) const;
    165174
    166175        // TODO: merge with old interface
Note: See TracChangeset for help on using the changeset viewer.