QMdnsEngine
0.1.0
Multicast DNS library for Qt applications
|
Base class for sending and receiving DNS messages. More...
#include <qmdnsengine/abstractserver.h>
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... | |
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.
|
signal |
message | brief description of the error |
|
signal |
message | newly received 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.
|
pure virtual |
The message should be sent over both IPv4 and IPv6 on all interfaces.
Implemented in QMdnsEngine::Server.