diff options
author | Benoit Foucher <benoit@zeroc.com> | 2015-02-06 11:43:41 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2015-02-06 11:43:41 +0100 |
commit | e591999d8782430e68c5917552ae50aa9bcf1e9d (patch) | |
tree | 287d1d317c8d60cbbe76e63bcbed20e75e12cee6 /cpp/src/Ice/TcpEndpointI.cpp | |
parent | Minor fix to Ice discovery hello server configuration (diff) | |
download | ice-e591999d8782430e68c5917552ae50aa9bcf1e9d.tar.bz2 ice-e591999d8782430e68c5917552ae50aa9bcf1e9d.tar.xz ice-e591999d8782430e68c5917552ae50aa9bcf1e9d.zip |
Added C++ plugins for endpoint factories, cleaned up registration of WS factories
Diffstat (limited to 'cpp/src/Ice/TcpEndpointI.cpp')
-rw-r--r-- | cpp/src/Ice/TcpEndpointI.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cpp/src/Ice/TcpEndpointI.cpp b/cpp/src/Ice/TcpEndpointI.cpp index 169a1aa5d94..606a442e94a 100644 --- a/cpp/src/Ice/TcpEndpointI.cpp +++ b/cpp/src/Ice/TcpEndpointI.cpp @@ -23,6 +23,17 @@ using namespace IceInternal; IceUtil::Shared* IceInternal::upCast(TcpEndpointI* p) { return p; } +extern "C" +{ + +Plugin* +createIceTCP(const CommunicatorPtr& c, const string&, const StringSeq&) +{ + return new EndpointFactoryPlugin(c, new TcpEndpointFactory(new ProtocolInstance(c, TCPEndpointType, "tcp", false))); +} + +} + IceInternal::TcpEndpointI::TcpEndpointI(const ProtocolInstancePtr& instance, const string& host, Int port, const Address& sourceAddr, Int timeout, const string& connectionId, bool compress) : |