22 #ifndef NETWORK_LISTENER_H
23 #define NETWORK_LISTENER_H
90 void error(QTcpSocket::SocketError socketError);
99 const Hash aHashOfAttemptedNode );
Class containing routines for parsing protocol messages. Methods are mainly called from network conne...
Definition: protocol_message_parser.h:39
ProtocolMessageParser * iParser
Definition: networklistener.h:109
virtual void connectionClosed(Connection *aDeletee)
virtual void connectionReady(Connection *aBusinessEntity)
void error(QTcpSocket::SocketError socketError)
QUdpSocket iBroadCastListener
Definition: networklistener.h:110
void nodeConnectionAttemptStatus(Connection::ConnectionState aStatus, const Hash aHashOfAttemptedNode)
Hash is class that carries 160-bit digest.
Definition: hash.h:37
MController * iController
Definition: networklistener.h:106
ConnectionState
Definition: connection.h:45
class for listening to incoming network connections.
Definition: networklistener.h:40
Pure-virtual interface class for controller. This is spammed across parties needing access to applica...
Definition: mcontroller.h:39
M of the MVC pattern. Handles permanent storage.
Definition: model.h:47
Interface for receiving network traffic.
Definition: connection.h:57
void incomingConnection(int aSocketDescriptor)
Model * iModel
Definition: networklistener.h:107
bool iCanAccept
Definition: networklistener.h:115
bool startListen(bool aIpv6)
Class that represents a network connection.
Definition: connection.h:41
NetworkListener(MController *aController, Model *aModel)
void figureOutLocalAddresses()
virtual bool dataReceived(const QByteArray &aData, Connection &aConnection)