#include <neighbor.hpp>
◆ Neighbor() [1/2]
IOTA::Models::Neighbor::Neighbor |
( |
| ) |
|
|
default |
◆ Neighbor() [2/2]
IOTA::Models::Neighbor::Neighbor |
( |
const Types::Trytes & |
address, |
|
|
const int64_t & |
numberOfAllTransactions, |
|
|
const int64_t & |
numberOfInvalidTransactions, |
|
|
const int64_t & |
numberOfNewTransactions |
|
) |
| |
Full init ctor.
- Parameters
-
address | Address of your peer. |
numberOfAllTransactions | Number of all transactions sent (invalid, valid, already-seen). |
numberOfInvalidTransactions | Number of invalid transactions your peer has sent you. |
numberOfNewTransactions | Number of newly transmitted transactions. |
◆ ~Neighbor()
IOTA::Models::Neighbor::~Neighbor |
( |
| ) |
|
|
default |
◆ getAddress()
const Types::Trytes& IOTA::Models::Neighbor::getAddress |
( |
| ) |
const |
◆ getNumberOfAllTransactions()
const int64_t& IOTA::Models::Neighbor::getNumberOfAllTransactions |
( |
| ) |
const |
- Returns
- Number of all transactions sent (invalid, valid, already-seen).
◆ getNumberOfInvalidTransactions()
const int64_t& IOTA::Models::Neighbor::getNumberOfInvalidTransactions |
( |
| ) |
const |
- Returns
- Invalid transactions your peer has sent you. These are transactions with invalid signatures or overall schema.
◆ getNumberOfNewTransactions()
const int64_t& IOTA::Models::Neighbor::getNumberOfNewTransactions |
( |
| ) |
const |
- Returns
- New transactions which were transmitted.
◆ operator!=()
bool IOTA::Models::Neighbor::operator!= |
( |
const Neighbor & |
rhs | ) |
const |
- Parameters
-
rhs | An object to compare with this object. |
- Returns
- Whether the current neighbor is different from the given one.
◆ operator==()
bool IOTA::Models::Neighbor::operator== |
( |
const Neighbor & |
rhs | ) |
const |
- Parameters
-
rhs | An object to compare with this object. |
- Returns
- Whether the current neighbor is the same as the given one.
◆ setAddress()
void IOTA::Models::Neighbor::setAddress |
( |
const Types::Trytes & |
addr | ) |
|
- Parameters
-
addr | Set address of your peer. |
◆ setNumberOfAllTransactions()
void IOTA::Models::Neighbor::setNumberOfAllTransactions |
( |
const int64_t & |
nbTrx | ) |
|
- Parameters
-
nbTrx | Set number of all transactions sent (invalid, valid, already seen). |
◆ setNumberOfInvalidTransactions()
void IOTA::Models::Neighbor::setNumberOfInvalidTransactions |
( |
const int64_t & |
nbTrx | ) |
|
- Parameters
-
nbTrx | Set number of invalid transactions sent your peer. |
◆ setNumberOfNewTransactions()
void IOTA::Models::Neighbor::setNumberOfNewTransactions |
( |
const int64_t & |
nbTrx | ) |
|
- Parameters
-
nbTrx | Set number of newly transmitted transactions. |
The documentation for this class was generated from the following file: