QMdnsEngine  0.1.0
Multicast DNS library for Qt applications
Signals | Public Member Functions | List of all members
QMdnsEngine::AbstractServer Class Referenceabstract

Base class for sending and receiving DNS messages. More...

#include <qmdnsengine/abstractserver.h>

Inheritance diagram for QMdnsEngine::AbstractServer:
QMdnsEngine::Server

Signals

void error (const QString &message)
 Indicate that an error has occurred. More...
 
void messageReceived (const Message &message)
 Indicate that a DNS message was received. More...
 

Public Member Functions

 AbstractServer (QObject *parent=0)
 Abstract constructor.
 
virtual void sendMessage (const Message &message)=0
 Send a message to its provided destination. More...
 
virtual void sendMessageToAll (const Message &message)=0
 Send a message to the multicast address on each interface. More...
 

Detailed Description

Many of the other classes in this library require the ability to send and receive DNS messages. By having them use this base class, they become far easier to test. Any class derived from this one that implements the pure virtual methods can be used for sending and receiving DNS messages.

Member Function Documentation

§ error

void QMdnsEngine::AbstractServer::error ( const QString &  message)
signal
Parameters
messagebrief description of the error

§ messageReceived

void QMdnsEngine::AbstractServer::messageReceived ( const Message message)
signal
Parameters
messagenewly received message

§ sendMessage()

virtual void QMdnsEngine::AbstractServer::sendMessage ( const Message message)
pure virtual

The message should be sent over the IP protocol specified in the message and to the target address and port specified in the message.

Implemented in QMdnsEngine::Server.

§ sendMessageToAll()

virtual void QMdnsEngine::AbstractServer::sendMessageToAll ( const Message message)
pure virtual

The message should be sent over both IPv4 and IPv6 on all interfaces.

Implemented in QMdnsEngine::Server.


The documentation for this class was generated from the following file: