24 #include "../util/hash.h"
26 #include <QHostAddress>
39 class Node :
public QObject {
52 const int aListenPort) ;
96 int port(
void)
const ;
151 const bool aIsInitialGreeting ) ;
void setLastConnectTime(const time_t aTime)
QString * iTorAddr
Definition: node.h:167
time_t lastConnectTime(void) const
int iListenPort
Definition: node.h:157
Node is a peer in network.
Definition: node.h:39
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:163
time_t iLastConnectTime
Definition: node.h:173
const Hash iNodeFingerPrint
Definition: node.h:155
time_t iTimeOfGoodNodeList
Definition: node.h:171
Hash is class that carries 160-bit digest.
Definition: hash.h:37
QString DNSAddr(void) const
QString TORAddr(void) const
quint32 iIPv4Addr
Definition: node.h:161
void setCanReceiveIncoming(const bool aYesItCan)
bool setIpAddrWithChecks(const QHostAddress &aAddress)
bool iCanReceiveIncoming
Definition: node.h:169
void setTORAddr(const QString &aAddr)
time_t iTimeOfLastContact
Definition: node.h:159
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:165
void setLastMutualConnectTime(const time_t aTime)
quint32 ipv4Addr(void) const
time_t iLastMutualConnectTime
Definition: node.h:175
Q_IPV6ADDR ipv6Addr(void) const
time_t lastMutualConnectTime(void) const