summaryrefslogtreecommitdiff
path: root/cppe/src
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2005-06-21 13:44:55 +0000
committerMatthew Newhook <matthew@zeroc.com>2005-06-21 13:44:55 +0000
commitf668c4df6437c49ed55551ec9d9bedfc1d68bb30 (patch)
tree2fa0494c0a66a8e5188068c9624130d6b1174002 /cppe/src
parentFixes (diff)
downloadice-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.cpp33
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);
+}
+