VS10 solution files, convert from NULL macro to nullptr.
[shibboleth/sp.git] / shibsp / remoting / ListenerService.h
index c85af8c..0590681 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright 2001-2009 Internet2
+ *  Copyright 2001-2010 Internet2
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -39,9 +39,9 @@ namespace shibsp {
     {
         MAKE_NONCOPYABLE(Remoted);
     protected:
-        Remoted() {}
+        Remoted();
     public:
-        virtual ~Remoted() {}
+        virtual ~Remoted();
 
         /**
          * Remoted classes implement this method to process incoming messages.
@@ -72,8 +72,10 @@ namespace shibsp {
      */
     class SHIBSP_API ListenerService : public virtual Remoted
     {
+    protected:
+        ListenerService();
     public:
-        virtual ~ListenerService() {}
+        virtual ~ListenerService();
 
         /**
          * Send a remoted message and return the response.
@@ -105,13 +107,13 @@ namespace shibsp {
          * @param restore   service to "restore" registration for
          * @return  true iff the current service was still registered
          */
-        virtual bool unregListener(const char* address, Remoted* current, Remoted* restore=NULL);
+        virtual bool unregListener(const char* address, Remoted* current, Remoted* restore=nullptr);
 
         /**
          * Returns current service registered at an address, if any.
          *
          * @param address message address to access
-         * @return  registered service, or NULL
+         * @return  registered service, or nullptr
          */
         virtual Remoted* lookup(const char* address) const;
 
@@ -126,9 +128,7 @@ namespace shibsp {
          * @param force     true iff remnant network state should be forcibly cleared
          * @return true iff the service initialization was successful
          */
-        virtual bool init(bool force) {
-            return true;
-        }
+        virtual bool init(bool force);
 
         /**
          * OutOfProcess servers can implement server-side transport handling by
@@ -142,8 +142,7 @@ namespace shibsp {
         /**
          * OutOfProcess servers can implement server-side termination/cleanup.
          */
-        virtual void term() {
-        }
+        virtual void term();
 
     private:
         std::map<std::string,Remoted*> m_listenerMap;