summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-12-04 15:40:40 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-12-04 15:40:40 (GMT)
commitbf5b66e7a8252fd1d9db26f5822c393e24ad091a (patch)
treea3dfe81e4bacd9d45fef5183da38b28854e62b0b /Documentation/SwiftenDevelopersGuide/Examples
parentbbf8a5fcb47d649bdcee1b2122eaa76f2c914ef7 (diff)
downloadswift-bf5b66e7a8252fd1d9db26f5822c393e24ad091a.zip
swift-bf5b66e7a8252fd1d9db26f5822c393e24ad091a.tar.bz2
Document custom requests & responders, and components.
Diffstat (limited to 'Documentation/SwiftenDevelopersGuide/Examples')
-rw-r--r--Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoComponent.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoComponent.cpp b/Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoComponent.cpp
index a4155be..4843b80 100644
--- a/Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoComponent.cpp
+++ b/Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoComponent.cpp
@@ -15,7 +15,8 @@ using namespace boost;
class EchoComponent {
public:
EchoComponent(EventLoop* eventLoop, NetworkFactories* networkFactories) {
- component = new Component(eventLoop, networkFactories, JID("echo.wonderland.lit"), "EchoSecret");
+ component = new Component(eventLoop, networkFactories,
+ JID("echo.wonderland.lit"), "EchoSecret");
component->onConnected.connect(bind(&EchoComponent::handleConnected, this));
component->onMessageReceived.connect(
bind(&EchoComponent::handleMessageReceived, this, _1));