diff options
author | Matthew Newhook <matthew@zeroc.com> | 2005-06-21 13:44:55 +0000 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2005-06-21 13:44:55 +0000 |
commit | f668c4df6437c49ed55551ec9d9bedfc1d68bb30 (patch) | |
tree | 2fa0494c0a66a8e5188068c9624130d6b1174002 /cppe/src | |
parent | Fixes (diff) | |
download | ice-f668c4df6437c49ed55551ec9d9bedfc1d68bb30.tar.bz2 ice-f668c4df6437c49ed55551ec9d9bedfc1d68bb30.tar.xz ice-f668c4df6437c49ed55551ec9d9bedfc1d68bb30.zip |
added missing file.
Diffstat (limited to 'cppe/src')
-rw-r--r-- | cppe/src/TcpTransport/EndpointServer.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/cppe/src/TcpTransport/EndpointServer.cpp b/cppe/src/TcpTransport/EndpointServer.cpp new file mode 100644 index 00000000000..9585d6b5e6e --- /dev/null +++ b/cppe/src/TcpTransport/EndpointServer.cpp @@ -0,0 +1,33 @@ + +// ********************************************************************** +// +// Copyright (c) 2003-2005 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. +// +// ********************************************************************** + +#include <Ice/Endpoint.h> +#include <Ice/Network.h> +#include <Ice/Acceptor.h> +#include <IceUtil/SafeStdio.h> + +using namespace std; +using namespace Ice; +using namespace IceInternal; + +AcceptorPtr +IceInternal::Endpoint::acceptor(EndpointPtr& endp) const +{ + Acceptor* p = new Acceptor(_instance, _host, _port); + endp = new Endpoint(_instance, _host, p->effectivePort(), _timeout); + return p; +} + +bool +IceInternal::Endpoint::equivalent(const AcceptorPtr& acceptor) const +{ + return acceptor->equivalent(_host, _port); +} + |