diff options
author | Marc Laukien <marc@zeroc.com> | 2001-08-16 11:26:24 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-08-16 11:26:24 +0000 |
commit | 73e01bb42f2f75a8dbea664a664e1a19e74c28c3 (patch) | |
tree | 401359fe34493546e28880e82e6fd4629cde8eb7 /cpp/src/IcePack/AdminI.cpp | |
parent | fixes (diff) | |
download | ice-73e01bb42f2f75a8dbea664a664e1a19e74c28c3.tar.bz2 ice-73e01bb42f2f75a8dbea664a664e1a19e74c28c3.tar.xz ice-73e01bb42f2f75a8dbea664a664e1a19e74c28c3.zip |
IcePack/simple
Diffstat (limited to 'cpp/src/IcePack/AdminI.cpp')
-rw-r--r-- | cpp/src/IcePack/AdminI.cpp | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/cpp/src/IcePack/AdminI.cpp b/cpp/src/IcePack/AdminI.cpp index 663cccd106b..9315d441c70 100644 --- a/cpp/src/IcePack/AdminI.cpp +++ b/cpp/src/IcePack/AdminI.cpp @@ -15,7 +15,8 @@ using namespace std; using namespace Ice; using namespace IcePack; -AdminI::AdminI() +AdminI::AdminI(const CommunicatorPtr& communicator) : + _communicator(communicator) { } @@ -48,10 +49,24 @@ AdminI::find(const ObjectPrx& p) if (p) { - return _map.find(p)->second; + map<ObjectPrx, ServerDescriptionPtr>::iterator q = _map.find(p); + if (q != _map.end()) + { + return q->second; + } + else + { + return 0; + } } else { return 0; } } + +void +AdminI::shutdown() +{ + _communicator->shutdown(); +} |