/*
**  Copyright (C) 2012 Aldebaran Robotics
**  See COPYING for the license
*/
#include <iostream>
#include <qi/log.hpp>

#include <qimessaging/session.hpp>
#include <qimessaging/url.hpp>
#include "transportserver_p.hpp"
#include "transportserverdummy_p.hpp"

namespace qi
{
  bool TransportServerDummyPrivate::listen()
  {
    qiLogWarning("TransportServer") << "listen: You are currently running on dummy"
                                    << " TransportServer!";
    return true;
  }

  void TransportServerDummyPrivate::close()
  {
    qiLogVerbose("TransportServer") << "close: You are currently running on dummy"
                                    << " TransportServer!";
  }

  TransportServerDummyPrivate::TransportServerDummyPrivate(TransportServer* self,
                                                           const qi::Url &url,
                                                           EventLoop* ctx)
    : TransportServerPrivate(self, url, ctx)
  {
  }

  void TransportServerDummyPrivate::destroy()
  {
    delete this;
  }
  TransportServerDummyPrivate::~TransportServerDummyPrivate()
  {
  }
}

/*
**  Copyright (C) 2012 Aldebaran Robotics
**  See COPYING for the license
*/
#include <iostream>
#include <qi/log.hpp>

#include <qimessaging/session.hpp>
#include <qimessaging/url.hpp>
#include "transportserver_p.hpp"
#include "transportserverdummy_p.hpp"

namespace qi
{
  bool TransportServerDummyPrivate::listen()
  {
    qiLogWarning("TransportServer") << "listen: You are currently running on dummy"
                                    << " TransportServer!";
    return true;
  }

  void TransportServerDummyPrivate::close()
  {
  }

  TransportServerDummyPrivate::TransportServerDummyPrivate(TransportServer* self,
                                                           const qi::Url &url,
                                                           EventLoop* ctx)
    : TransportServerPrivate(self, url, ctx)
  {
  }

  void TransportServerDummyPrivate::destroy()
  {
    delete this;
  }
  TransportServerDummyPrivate::~TransportServerDummyPrivate()
  {
  }
}

--- 
+++ 
@@ -21,6 +21,8 @@
 
   void TransportServerDummyPrivate::close()
   {
+    qiLogVerbose("TransportServer") << "close: You are currently running on dummy"
+                                    << " TransportServer!";
   }
 
   TransportServerDummyPrivate::TransportServerDummyPrivate(TransportServer* self,
Revert "TransportServerDummy: no log on close"

This reverts commit 77896788c168ab6b031037be96f28486da97c557.
