FountainMasterNode.cpp File Reference

implementation of the FountainMasterNode class methods More...

#include "define.h"
#include "FountainMasterNode.h"
#include "NodeMessage.h"
#include "TreeTopology.h"
#include "FountainWireProt.h"
#include "FountainErrors.h"
#include "Asserter.h"
#include "Enforce.h"
#include <bamboo/qLog.h>
#include <bamboo/ConfigReader.h>
#include <bamboo/TypeConvert.h>
#include "LokiInclude.h"
#include <ctime>
#include <string>
#include <vector>
#include <list>
#include <sstream>
#include <pwd.h>
#include <sys/types.h>
#include <cstddef>

Variables

const time_t CHILD_RESPONSE_TIMEOUT = 5
 Number of seconds to wait for a child response

Ideally this number would change as the tree topology grows larger since the master Fountain node has to wait until all of its children, grandchildren, great grandchildren etc, have processed and responded to the request message until it receives a response. For now we'll leave it as a const variable with static linkage in this file.

bool DEFAULT_RESTRICT_ACTORS = true
 true if only Fountain nodes with the same "actor" attribute in their request can join us, otherwise any actor attribute is accepted
bool DEFAULT_RESTRICT_HOSTNAMES = true
 true if hostnames of slave Fountain nodes are determined using the getpeername system call, otherwise the hostnames of slave Fountain nodes are supplied in the join request


Detailed Description

implementation of the FountainMasterNode class methods


Generated on Wed Mar 8 14:43:31 2006 for Fountain by  doxygen 1.4.6