23 #ifndef NETWORK_LISTENER_H 24 #define NETWORK_LISTENER_H 30 #include <QNetworkSession> 95 #if QT_VERSION >= 0x050000 101 void error(QTcpSocket::SocketError socketError);
110 const Hash aHashOfAttemptedNode );
Class containing routines for parsing protocol messages. Methods are mainly called from network conne...
Definition: protocol_message_parser.h:40
ProtocolMessageParser * iParser
Definition: networklistener.h:125
void networkStateChanged(QNetworkSession::State aState)
QNetworkSession * iNetworkSession
Definition: networklistener.h:133
virtual void connectionClosed(Connection *aDeletee)
virtual void connectionReady(Connection *aBusinessEntity)
void connectionAttemptFailed(const Hash &aNodeHash)
void error(QTcpSocket::SocketError socketError)
QUdpSocket iBroadCastListener
Definition: networklistener.h:126
void nodeConnectionAttemptStatus(Connection::ConnectionState aStatus, const Hash aHashOfAttemptedNode)
Hash is class that carries 160-bit digest.
Definition: hash.h:38
MController * iController
Definition: networklistener.h:122
ConnectionState
Definition: connection.h:47
QNetworkConfiguration iConnectionConfig
Definition: networklistener.h:132
class for listening to incoming network connections.
Definition: networklistener.h:42
Pure-virtual interface class for controller. This is spammed across parties needing access to applica...
Definition: mcontroller.h:48
M of the MVC pattern. Handles permanent storage.
Definition: model.h:50
Interface for receiving network traffic.
Definition: connection.h:59
void incomingConnection(int aSocketDescriptor)
Model * iModel
Definition: networklistener.h:123
bool iCanAccept
Definition: networklistener.h:131
bool startListen(bool aIpv6)
Class that represents a network connection.
Definition: connection.h:43
NetworkListener(MController *aController, Model *aModel)
void figureOutLocalAddresses()
virtual bool dataReceived(const QByteArray &aData, Connection &aConnection)