25 #include "../util/hash.h" 27 #include <QHostAddress> 52 const int aListenPort) ;
96 int port(
void)
const ;
152 const bool aIsInitialGreeting ) ;
void setLastConnectTime(const time_t aTime)
QString * iTorAddr
Definition: node.h:168
time_t lastConnectTime(void) const
int iListenPort
Definition: node.h:158
Node is a peer in network.
Definition: node.h:40
bool canReceiveIncoming(void) const
void setPort(const int aPort)
const Hash & nodeFingerPrint(void) const
void setGoodNodeListTime(const time_t aTime)
void setIpv6Addr(const Q_IPV6ADDR &aAddr)
Node(const Hash &aNodeFingerPrint, const int aListenPort)
time_t goodNodeListTime(void) const
Q_IPV6ADDR iIPv6Addr
Definition: node.h:164
time_t iLastConnectTime
Definition: node.h:174
const Hash iNodeFingerPrint
Definition: node.h:156
time_t iTimeOfGoodNodeList
Definition: node.h:172
Hash is class that carries 160-bit digest.
Definition: hash.h:38
QString DNSAddr(void) const
QString TORAddr(void) const
quint32 iIPv4Addr
Definition: node.h:162
void setCanReceiveIncoming(const bool aYesItCan)
bool setIpAddrWithChecks(const QHostAddress &aAddress)
bool iCanReceiveIncoming
Definition: node.h:170
void setTORAddr(const QString &aAddr)
time_t iTimeOfLastContact
Definition: node.h:160
void setIpv4Addr(const quint32 aAddr)
QVariant asQVariant() const
void setDNSAddr(const QString &aAddr)
static Node * fromQVariant(const QVariantMap &aJSonAsQVariant, const bool aIsInitialGreeting)
QString * iDnsName
Definition: node.h:166
void setLastMutualConnectTime(const time_t aTime)
quint32 ipv4Addr(void) const
time_t iLastMutualConnectTime
Definition: node.h:176
Q_IPV6ADDR ipv6Addr(void) const
time_t lastMutualConnectTime(void) const