// ********************************************************************** // // Copyright (c) 2003-2007 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. // // ********************************************************************** #ifndef ICE_TCP_CONNECTOR_H #define ICE_TCP_CONNECTOR_H #include #include #include #include #include #ifdef _WIN32 # include #else # include #endif namespace IceInternal { class TcpConnector : public Connector { public: virtual TransceiverPtr connect(int); virtual Ice::Short type() const; virtual std::string toString() const; virtual bool operator==(const Connector&) const; virtual bool operator!=(const Connector&) const; virtual bool operator<(const Connector&) const; private: TcpConnector(const InstancePtr&, const struct sockaddr_storage&, Ice::Int, const std::string&); virtual ~TcpConnector(); friend class TcpEndpointI; const InstancePtr _instance; const TraceLevelsPtr _traceLevels; const ::Ice::LoggerPtr _logger; struct sockaddr_storage _addr; const Ice::Int _timeout; const std::string _connectionId; }; } #endif