/*
- * 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.
{
MAKE_NONCOPYABLE(Remoted);
protected:
- Remoted() {}
+ Remoted();
public:
- virtual ~Remoted() {}
+ virtual ~Remoted();
/**
* Remoted classes implement this method to process incoming messages.
*/
class SHIBSP_API ListenerService : public virtual Remoted
{
+ protected:
+ ListenerService();
public:
- virtual ~ListenerService() {}
+ virtual ~ListenerService();
/**
* Send a remoted message and return the response.
* @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;
* @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
/**
* OutOfProcess servers can implement server-side termination/cleanup.
*/
- virtual void term() {
- }
+ virtual void term();
private:
std::map<std::string,Remoted*> m_listenerMap;