Base class for sending and receiving DNS messages.
More...
#include <qmdnsengine/abstractserver.h>
|
| void | error (const QString &message) |
| | Indicate that an error has occurred.
|
| void | messageReceived (const Message &message) |
| | Indicate that a DNS message was received.
|
|
|
| AbstractServer (QObject *parent=0) |
| | Abstract constructor.
|
| virtual void | sendMessage (const Message &message)=0 |
| | Send a message to its provided destination.
|
| virtual void | sendMessageToAll (const Message &message)=0 |
| | Send a message to the multicast address on each interface.
|
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.
◆ error
| void QMdnsEngine::AbstractServer::error |
( |
const QString & | message | ) |
|
|
signal |
- Parameters
-
| message | brief description of the error |
◆ messageReceived
| void QMdnsEngine::AbstractServer::messageReceived |
( |
const Message & | message | ) |
|
|
signal |
- Parameters
-
| message | newly 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: