diff options
author | Marc Laukien <marc@zeroc.com> | 2004-11-29 21:21:18 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2004-11-29 21:21:18 +0000 |
commit | 69b84c80da5a4f8bc48777459b4c46741dc80544 (patch) | |
tree | 21860af8f56b9a054646c470a4aea0b0debbffb8 /cpp/src/IcePatch2/Server.cpp | |
parent | fixes (diff) | |
download | ice-69b84c80da5a4f8bc48777459b4c46741dc80544.tar.bz2 ice-69b84c80da5a4f8bc48777459b4c46741dc80544.tar.xz ice-69b84c80da5a4f8bc48777459b4c46741dc80544.zip |
fixes
Diffstat (limited to 'cpp/src/IcePatch2/Server.cpp')
-rw-r--r-- | cpp/src/IcePatch2/Server.cpp | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/cpp/src/IcePatch2/Server.cpp b/cpp/src/IcePatch2/Server.cpp index c6a621b0351..9d7af28c3f7 100644 --- a/cpp/src/IcePatch2/Server.cpp +++ b/cpp/src/IcePatch2/Server.cpp @@ -22,6 +22,26 @@ using namespace IcePatch2; namespace IcePatch2 { +class AdminI : public Admin +{ +public: + + AdminI(const CommunicatorPtr& communicator) : + _communicator(communicator) + { + } + + virtual void + shutdown(const Current&) + { + _communicator->shutdown(); + } + +private: + + const CommunicatorPtr _communicator; +}; + class PatcherService : public Service { public: @@ -149,7 +169,7 @@ IcePatch2::PatcherService::start(int argc, char* argv[]) { const char* adminIdProperty = "IcePatch2.AdminIdentity"; Identity adminId = stringToIdentity(properties->getPropertyWithDefault(adminIdProperty, "IcePatch2/admin")); -// adminAdapter->add(new AdminI(communicator()), adminId); + adminAdapter->add(new AdminI(communicator()), adminId); } adapter->activate(); |