summaryrefslogtreecommitdiff
path: root/cppe/src/IceE/UnknownEndpoint.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cppe/src/IceE/UnknownEndpoint.cpp')
-rw-r--r--cppe/src/IceE/UnknownEndpoint.cpp177
1 files changed, 0 insertions, 177 deletions
diff --git a/cppe/src/IceE/UnknownEndpoint.cpp b/cppe/src/IceE/UnknownEndpoint.cpp
deleted file mode 100644
index db1e6168d6a..00000000000
--- a/cppe/src/IceE/UnknownEndpoint.cpp
+++ /dev/null
@@ -1,177 +0,0 @@
-// **********************************************************************
-//
-// Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved.
-//
-// This copy of Ice-E is licensed to you under the terms described in the
-// ICEE_LICENSE file included in this distribution.
-//
-// **********************************************************************
-
-#include <IceE/UnknownEndpoint.h>
-#include <IceE/BasicStream.h>
-#include <IceE/Exception.h>
-#include <IceE/Instance.h>
-
-using namespace std;
-using namespace Ice;
-using namespace IceInternal;
-
-IceInternal::UnknownEndpoint::UnknownEndpoint(Short type, BasicStream* s) :
- _instance(s->instance()),
- _type(type)
-{
- s->startReadEncaps();
- Int sz = s->getReadEncapsSize();
- s->readBlob(const_cast<vector<Byte>&>(_rawBytes), sz);
- s->endReadEncaps();
-}
-
-void
-IceInternal::UnknownEndpoint::streamWrite(BasicStream* s) const
-{
- s->write(_type);
- s->startWriteEncaps();
- s->writeBlob(_rawBytes);
- s->endWriteEncaps();
-}
-
-string
-IceInternal::UnknownEndpoint::toString() const
-{
- return string();
-}
-
-Short
-IceInternal::UnknownEndpoint::type() const
-{
- return _type;
-}
-
-Int
-IceInternal::UnknownEndpoint::timeout() const
-{
- return -1;
-}
-
-EndpointPtr
-IceInternal::UnknownEndpoint::timeout(Int) const
-{
- return const_cast<UnknownEndpoint*>(this);
-}
-
-bool
-IceInternal::UnknownEndpoint::secure() const
-{
- return false;
-}
-
-bool
-IceInternal::UnknownEndpoint::datagram() const
-{
- return false;
-}
-
-bool
-IceInternal::UnknownEndpoint::unknown() const
-{
- return true;
-}
-
-ConnectorPtr
-IceInternal::UnknownEndpoint::connector() const
-{
- return 0;
-}
-
-#ifndef ICEE_PURE_CLIENT
-AcceptorPtr
-IceInternal::UnknownEndpoint::acceptor(EndpointPtr& endp) const
-{
- endp = const_cast<UnknownEndpoint*>(this);
- return 0;
-}
-
-bool
-IceInternal::UnknownEndpoint::publish() const
-{
- return false;
-}
-
-#endif
-
-vector<EndpointPtr>
-IceInternal::UnknownEndpoint::expand(bool) const
-{
- assert(false);
- vector<EndpointPtr> ret;
- return ret;
-
-}
-
-bool
-IceInternal::UnknownEndpoint::operator==(const Endpoint& r) const
-{
- const UnknownEndpoint* p = dynamic_cast<const UnknownEndpoint*>(&r);
- if(!p)
- {
- return false;
- }
-
- if(this == p)
- {
- return true;
- }
-
- if(_type != p->_type)
- {
- return false;
- }
-
- if(_rawBytes != p->_rawBytes)
- {
- return false;
- }
-
- return true;
-}
-
-bool
-IceInternal::UnknownEndpoint::operator!=(const Endpoint& r) const
-{
- return !operator==(r);
-}
-
-bool
-IceInternal::UnknownEndpoint::operator<(const Endpoint& r) const
-{
- const UnknownEndpoint* p = dynamic_cast<const UnknownEndpoint*>(&r);
- if(!p)
- {
- return type() < r.type();
- }
-
- if(this == p)
- {
- return false;
- }
-
- if(_type < p->_type)
- {
- return true;
- }
- else if(p->_type < _type)
- {
- return false;
- }
-
- if(_rawBytes < p->_rawBytes)
- {
- return true;
- }
- else if(p->_rawBytes < _rawBytes)
- {
- return false;
- }
-
- return false;
-}