summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/background/EndpointFactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Ice/background/EndpointFactory.cpp')
-rw-r--r--cpp/test/Ice/background/EndpointFactory.cpp18
1 files changed, 14 insertions, 4 deletions
diff --git a/cpp/test/Ice/background/EndpointFactory.cpp b/cpp/test/Ice/background/EndpointFactory.cpp
index 99adee100f8..4422d7442b3 100644
--- a/cpp/test/Ice/background/EndpointFactory.cpp
+++ b/cpp/test/Ice/background/EndpointFactory.cpp
@@ -1,6 +1,6 @@
// **********************************************************************
//
-// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
+// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
@@ -33,9 +33,9 @@ EndpointFactory::protocol() const
}
IceInternal::EndpointIPtr
-EndpointFactory::create(const string& str, bool server) const
+EndpointFactory::create(vector<string>& args, bool oaEndpoint) const
{
- return new EndpointI(_factory->create(str, server));
+ return new EndpointI(_factory->create(args, oaEndpoint));
}
IceInternal::EndpointIPtr
@@ -44,10 +44,20 @@ EndpointFactory::read(IceInternal::BasicStream* s) const
short type;
s->read(type);
assert(type == _factory->type());
- return new EndpointI(_factory->read(s));
+
+ s->startReadEncaps();
+ IceInternal::EndpointIPtr endpoint = new EndpointI(_factory->read(s));
+ s->endReadEncaps();
+ return endpoint;
}
void
EndpointFactory::destroy()
{
}
+
+IceInternal::EndpointFactoryPtr
+EndpointFactory::clone(const IceInternal::ProtocolInstancePtr&) const
+{
+ return const_cast<EndpointFactory*>(this);
+}