MCPcopy Create free account
hub / github.com/RangeNetworks/openbts / holdingOff

Method holdingOff

Peering/NeighborTable.cpp:343–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341
342
343bool NeighborTable::holdingOff(const char* address)
344{
345 if (mDB == NULL) { return true; } // we already threw an ALERT.
346 unsigned holdoffTime;
347 if (!sqlite3_single_lookup(mDB,"NEIGHBOR_TABLE","IPADDRESS",address,"HOLDOFF",holdoffTime)) {
348 LOG(ALERT) << "cannot read neighbor table";
349 return false;
350 }
351 time_t now = time(NULL);
352 LOG(DEBUG) << "hold-off time for " << address << ": " << holdoffTime << ", now: " << now;
353 return now < (time_t)holdoffTime;
354}
355
356std::vector<unsigned> NeighborTable::getARFCNs() const
357{

Callers 1

HandoverDeterminationFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected