24 #include <QHostAddress>
99 const Hash& aFpOfNodeToTry ) ;
108 const Q_IPV6ADDR& aAddr2) ;
209 void error(QTcpSocket::SocketError socketError);
void error(QTcpSocket::SocketError socketError)
Node * iNodeOfConnectedPeer
Definition: connection.h:280
bool isInbound() const
Definition: connection.h:167
const int iPortToConnect
Definition: connection.h:284
unsigned long bytesIn() const
Definition: connection.h:184
unsigned long iBytesOut
Definition: connection.h:327
ConnectionState connectionState() const
Definition: connection.h:146
Node is a peer in network.
Definition: node.h:39
void setStageOfBucketFill(ProtocolItemType aStage)
Definition: connection.h:160
QSslSocket * iSocket
Definition: connection.h:264
Hash iFpOfNodeWeTrying
Definition: connection.h:298
void runForIncomingConnections()
quint32 iBytesExpectedInPacketBeingRead
Definition: connection.h:267
Hash iEndOfBucket
Definition: connection.h:321
unsigned iNumberOfPacketsReceived
Definition: connection.h:255
ConnectionState iConnectionState
Definition: connection.h:257
const time_t iSocketOpenTime
Definition: connection.h:323
const Hash & fingerPrintOfNodeAttempted()
unsigned long iBytesIn
Definition: connection.h:325
ProtocolItemType iStageOfBucketFill
Definition: connection.h:312
int iInvocationsSinceLastByteReceived
Definition: connection.h:276
Hash is class that carries 160-bit digest.
Definition: hash.h:37
MController & iController
Definition: connection.h:290
const bool iSocketIsIncoming
Definition: connection.h:288
ConnectionObserver & iObserver
Definition: connection.h:259
Definition: connection.h:47
ConnectionState
Definition: connection.h:45
ProtocolItemType stageOfBucketFill() const
Definition: connection.h:154
QHostAddress iAddrToConnect
Definition: connection.h:282
Model & iModel
Definition: connection.h:265
ProtocolItemType
Definition: protocol.h:124
void blackListNetworkAddr(QHostAddress aAddr)
virtual bool dataReceived(const QByteArray &aData, Connection &aConnection)=0
Definition: connection.h:49
virtual void connectionReady(Connection *aBusinessEntity)=0
virtual void connectionClosed(Connection *aDeletee)=0
Pure-virtual interface class for controller. This is spammed across parties needing access to applica...
Definition: mcontroller.h:39
QHostAddress peerAddress() const
Definition: connection.h:48
M of the MVC pattern. Handles permanent storage.
Definition: model.h:47
Interface for receiving network traffic.
Definition: connection.h:57
time_t iTimeOfLastActivity
Definition: connection.h:254
unsigned long bytesOut() const
Definition: connection.h:190
Connection(int aSocketDescriptor, ConnectionObserver &aObserver, Model &aModel, MController &aController)
QList< SendQueueItem > iSendQueue
Definition: connection.h:241
static bool Ipv6AddressesEqual(const Q_IPV6ADDR &aAddr1, const Q_IPV6ADDR &aAddr2)
quint32 iTimeOfBucketFill
Definition: connection.h:316
QList< QByteArray * > iNextProtocolItemToSend
Definition: connection.h:251
time_t getOpenTime() const
Definition: connection.h:173
Node * node() const
Definition: connection.h:118
void runForOutgoingConnections()
QByteArray * iBytesRead
Definition: connection.h:269
Definition: connection.h:46
void setNode(Node *aNode)
Definition: connection.h:126
Class that represents a network connection.
Definition: connection.h:41
bool isInPrivateAddrSpace() const
void checkForBucketFill()
bool iNeedsToRun
Definition: connection.h:253
const int iSocketDescriptor
Definition: connection.h:286