22 #ifndef NETWORK_CONNECTOR_ENG_H
23 #define NETWORK_CONNECTOR_ENG_H
27 #include <QHostAddress>
30 #include "../controller.h"
31 #include "../datamodel/model.h"
72 const Hash aHashOfAttemptedNode );
74 void error(QTcpSocket::SocketError socketError);
79 const Hash& aHashOfNodeToConnect) ;
125 const QString& aFromDnsName,
126 bool aDoWeHaveIpv6) ;
Class containing routines for parsing protocol messages. Methods are mainly called from network conne...
Definition: protocol_message_parser.h:39
void spawnNewConnection(const QHostAddress &aAddr, const int aPort, const Hash &aHashOfNodeToConnect)
void nodeConnectionAttemptStatus(Connection::ConnectionState aStatus, const Hash aHashOfAttemptedNode)
Class for keeping app state.
Definition: controller.h:42
quint32 iTimeOfLastMsgPollForProfile
Definition: networkconnectorengine.h:148
~NetworkConnectorEngine()
time_t iTimeOfLastMsgPoll
Definition: networkconnectorengine.h:141
void updateListOfNodesToConnect()
QUdpSocket * iBroadCastSocket
Definition: networkconnectorengine.h:134
QList< QHostAddress > iAddressBlacklist
Definition: networkconnectorengine.h:155
Hash is class that carries 160-bit digest.
Definition: hash.h:37
void error(QTcpSocket::SocketError socketError)
void createConnectionsToNodesStoringPrivateMessages()
Model * iModel
Definition: networkconnectorengine.h:131
Controller * iController
Definition: networkconnectorengine.h:130
NetworkConnectorEngine(Controller *aController, Model *aModel, Connection::ConnectionObserver &aObserver)
bool iNeedsToRun
Definition: networkconnectorengine.h:128
QList< QPair< QHostAddress, int > > iAddressesInOrderToConnect
Definition: networkconnectorengine.h:133
ConnectionState
Definition: connection.h:45
void blackListNetworkAddr(QHostAddress aAddr)
M of the MVC pattern. Handles permanent storage.
Definition: model.h:47
Interface for receiving network traffic.
Definition: connection.h:57
Class that will initiate 1 or more network connections.
Definition: networkconnectorengine.h:44
bool pruneConnectionProspectList(QList< Node * > *aListToPrune) const
Connection::ConnectionObserver & iConnectionObserver
Definition: networkconnectorengine.h:132
bool tryServeWishListItem()
time_t iTimeOfLastBroadCast
Definition: networkconnectorengine.h:135
bool performDNSLookup(QHostAddress *aAddressToBeSet, const QString &aFromDnsName, bool aDoWeHaveIpv6)
Hash iProfileToPollPrivateMessages
Definition: networkconnectorengine.h:156
QList< Hash > iPrivateMessagePollWishList
Definition: networkconnectorengine.h:157
void sendPrivateMessagesPoll(const Hash &aNodeFingerPrint)