1 //
2 // Copyright (c) ZeroC, Inc. All rights reserved.
3 //
4 
5 #ifndef ICE_TCP_CONNECTOR_H
6 #define ICE_TCP_CONNECTOR_H
7 
8 #include <Ice/TransceiverF.h>
9 #include <Ice/ProtocolInstanceF.h>
10 #include <Ice/Connector.h>
11 #include <Ice/Network.h>
12 
13 namespace IceInternal
14 {
15 
16 class TcpConnector : public Connector
17 {
18 public:
19 
20     virtual TransceiverPtr connect();
21 
22     virtual Ice::Short type() const;
23     virtual std::string toString() const;
24 
25     virtual bool operator==(const Connector&) const;
26     virtual bool operator<(const Connector&) const;
27 
28 private:
29 
30     TcpConnector(const ProtocolInstancePtr&, const Address&, const NetworkProxyPtr&, const Address&, Ice::Int,
31                  const std::string&);
32     virtual ~TcpConnector();
33     friend class TcpEndpointI;
34 
35     const ProtocolInstancePtr _instance;
36     const Address _addr;
37     const NetworkProxyPtr _proxy;
38     const Address _sourceAddr;
39     const Ice::Int _timeout;
40     const std::string _connectionId;
41 };
42 
43 }
44 
45 #endif
46