summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/SwiftenDevelopersGuide')
-rw-r--r--Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot5.cpp2
-rw-r--r--Documentation/SwiftenDevelopersGuide/Swiften Developers Guide.xml5
2 files changed, 5 insertions, 2 deletions
diff --git a/Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot5.cpp b/Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot5.cpp
index b0a76fd..98a63d6 100644
--- a/Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot5.cpp
+++ b/Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot5.cpp
@@ -27,12 +27,14 @@ class EchoBot {
//...
softwareVersionResponder = new SoftwareVersionResponder(
"EchoBot", "1.0", client->getIQRouter());
+ softwareVersionResponder->start();
//...
client->connect();
//...
}
~EchoBot() {
+ softwareVersionResponder->stop();
delete softwareVersionResponder;
//...
delete tracer;
diff --git a/Documentation/SwiftenDevelopersGuide/Swiften Developers Guide.xml b/Documentation/SwiftenDevelopersGuide/Swiften Developers Guide.xml
index 1df3781..ab1b796 100644
--- a/Documentation/SwiftenDevelopersGuide/Swiften Developers Guide.xml
+++ b/Documentation/SwiftenDevelopersGuide/Swiften Developers Guide.xml
@@ -254,8 +254,9 @@
<para>
Using <literal>SoftwareVersionResponder</literal> is pretty
straightforward, as can be seen in <xref linkend="Example-EchoBot5"/>:
- simply construct the responder with the correct
- parameters, and it will automatically respond to the incoming
+ simply construct the responder, set the correct
+ parameters, call <literal>start()</literal>, and it will automatically respond to
+ the incoming
requests. Other <literal>Responder</literal> classes may provide
signals to notify of incoming requests, or may have some other
behavior. For a detailed explanation of responders, see