diff options
author | Benoit Foucher <benoit@zeroc.com> | 2008-06-06 11:39:41 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2008-06-06 11:39:41 +0200 |
commit | 966061fcb0e2ec4d5d7ed9c6c280eefb27209da7 (patch) | |
tree | 078246631fb864d9e908108d69917b18c6303c16 /cppe/src/TcpTransport/Connector.cpp | |
parent | Removed SL code (diff) | |
download | ice-966061fcb0e2ec4d5d7ed9c6c280eefb27209da7.tar.bz2 ice-966061fcb0e2ec4d5d7ed9c6c280eefb27209da7.tar.xz ice-966061fcb0e2ec4d5d7ed9c6c280eefb27209da7.zip |
Removed Ice-E
Diffstat (limited to 'cppe/src/TcpTransport/Connector.cpp')
-rw-r--r-- | cppe/src/TcpTransport/Connector.cpp | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/cppe/src/TcpTransport/Connector.cpp b/cppe/src/TcpTransport/Connector.cpp deleted file mode 100644 index 04d44e49322..00000000000 --- a/cppe/src/TcpTransport/Connector.cpp +++ /dev/null @@ -1,66 +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/Connector.h> -#include <IceE/Transceiver.h> -#include <IceE/Instance.h> -#include <IceE/TraceLevels.h> -#include <IceE/LoggerUtil.h> -#include <IceE/Network.h> -#include <IceE/Exception.h> - -using namespace std; -using namespace Ice; -using namespace IceInternal; - -IceUtil::Shared* IceInternal::upCast(Connector* p) { return p; } - -TransceiverPtr -Connector::connect(int timeout) -{ - if(_traceLevels->network >= 2) - { - Trace out(_logger, _traceLevels->networkCat); - out << "trying to establish tcp connection to " << toString(); - } - - SOCKET fd = createSocket(); - setBlock(fd, false); - setTcpBufSize(fd, _instance->initializationData().properties, _logger); - doConnect(fd, _addr, timeout); -#ifndef ICEE_USE_SELECT_OR_POLL_FOR_TIMEOUTS - setBlock(fd, true); -#endif - - if(_traceLevels->network >= 1) - { - Trace out(_logger, _traceLevels->networkCat); - out << "tcp connection established\n" << fdToString(fd); - } - - return new Transceiver(_instance, fd); -} - -string -Connector::toString() const -{ - return addrToString(_addr); -} - -Connector::Connector(const InstancePtr& instance, const string& host, int port) : - _instance(instance), - _traceLevels(instance->traceLevels()), - _logger(instance->initializationData().logger) -{ - getAddress(host, port, _addr); -} - -Connector::~Connector() -{ -} |