23 #ifndef NETWORK_CONNECTOR_ENG_H 24 #define NETWORK_CONNECTOR_ENG_H 28 #include <QHostAddress> 31 #include "../controller.h" 32 #include "../datamodel/model.h" 73 const Hash aHashOfAttemptedNode );
75 void error(QTcpSocket::SocketError socketError);
80 const Hash& aHashOfNodeToConnect) ;
126 const QString& aFromDnsName,
127 bool aDoWeHaveIpv6) ;
Class containing routines for parsing protocol messages. Methods are mainly called from network conne...
Definition: protocol_message_parser.h:40
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:83
quint32 iTimeOfLastMsgPollForProfile
Definition: networkconnectorengine.h:149
~NetworkConnectorEngine()
time_t iTimeOfLastMsgPoll
Definition: networkconnectorengine.h:142
void updateListOfNodesToConnect()
QUdpSocket * iBroadCastSocket
Definition: networkconnectorengine.h:135
QList< QHostAddress > iAddressBlacklist
Definition: networkconnectorengine.h:156
Hash is class that carries 160-bit digest.
Definition: hash.h:38
void error(QTcpSocket::SocketError socketError)
void createConnectionsToNodesStoringPrivateMessages()
Model * iModel
Definition: networkconnectorengine.h:132
Controller * iController
Definition: networkconnectorengine.h:131
NetworkConnectorEngine(Controller *aController, Model *aModel, Connection::ConnectionObserver &aObserver)
bool iNeedsToRun
Definition: networkconnectorengine.h:129
ConnectionState
Definition: connection.h:47
void blackListNetworkAddr(QHostAddress aAddr)
M of the MVC pattern. Handles permanent storage.
Definition: model.h:50
bool pruneConnectionProspectList(QList< Node *> *aListToPrune) const
Interface for receiving network traffic.
Definition: connection.h:59
Class that will initiate 1 or more network connections.
Definition: networkconnectorengine.h:45
Connection::ConnectionObserver & iConnectionObserver
Definition: networkconnectorengine.h:133
bool tryServeWishListItem()
time_t iTimeOfLastBroadCast
Definition: networkconnectorengine.h:136
QList< MNodeModelProtocolInterface::HostConnectQueueItem > iAddressesInOrderToConnect
Definition: networkconnectorengine.h:134
bool performDNSLookup(QHostAddress *aAddressToBeSet, const QString &aFromDnsName, bool aDoWeHaveIpv6)
Hash iProfileToPollPrivateMessages
Definition: networkconnectorengine.h:157
QList< Hash > iPrivateMessagePollWishList
Definition: networkconnectorengine.h:158
void sendPrivateMessagesPoll(const Hash &aNodeFingerPrint)