diff options
author | Benoit Foucher <benoit@zeroc.com> | 2014-09-10 08:47:19 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2014-09-10 08:47:19 +0200 |
commit | b6c9d9a880f6f1a6908a3c62dfccdce3e68dad80 (patch) | |
tree | d3e9e9340064538a8dc7a645260d0eb3cdf55d63 /cpp/src/Ice/TcpTransceiver.h | |
parent | Undo bogus change from an earlier commit. (diff) | |
download | ice-b6c9d9a880f6f1a6908a3c62dfccdce3e68dad80.tar.bz2 ice-b6c9d9a880f6f1a6908a3c62dfccdce3e68dad80.tar.xz ice-b6c9d9a880f6f1a6908a3c62dfccdce3e68dad80.zip |
ICE-5582 (SOCKs test), ICE-5314 (HTTP proxies), major refactoring of networking code (addition of StreamSocket class abstraction)
Diffstat (limited to 'cpp/src/Ice/TcpTransceiver.h')
-rw-r--r-- | cpp/src/Ice/TcpTransceiver.h | 34 |
1 files changed, 4 insertions, 30 deletions
diff --git a/cpp/src/Ice/TcpTransceiver.h b/cpp/src/Ice/TcpTransceiver.h index 0e1189a3d31..a3a170b85ee 100644 --- a/cpp/src/Ice/TcpTransceiver.h +++ b/cpp/src/Ice/TcpTransceiver.h @@ -13,6 +13,7 @@ #include <Ice/ProtocolInstanceF.h> #include <Ice/Transceiver.h> #include <Ice/Network.h> +#include <Ice/StreamSocket.h> namespace IceInternal { @@ -20,23 +21,11 @@ namespace IceInternal class TcpConnector; class TcpAcceptor; -class TcpTransceiver : public Transceiver, public NativeInfo +class TcpTransceiver : public Transceiver { - enum State - { - StateNeedConnect, - StateConnectPending, - StateProxyConnectRequest, - StateProxyConnectRequestPending, - StateConnected - }; - public: virtual NativeInfoPtr getNativeInfo(); -#ifdef ICE_USE_IOCP - virtual AsyncInfo* getAsyncInfo(SocketOperation); -#endif virtual SocketOperation initialize(Buffer&, Buffer&, bool&); virtual SocketOperation closing(bool, const Ice::LocalException&); @@ -57,29 +46,14 @@ public: private: - TcpTransceiver(const ProtocolInstancePtr&, SOCKET, const NetworkProxyPtr&, const Address&, const Address&); - TcpTransceiver(const ProtocolInstancePtr&, SOCKET); + TcpTransceiver(const ProtocolInstancePtr&, const StreamSocketPtr&); virtual ~TcpTransceiver(); - void connect(); - friend class TcpConnector; friend class TcpAcceptor; const ProtocolInstancePtr _instance; - const NetworkProxyPtr _proxy; - const Address _addr; - const Address _sourceAddr; - - State _state; - std::string _desc; - -#ifdef ICE_USE_IOCP - AsyncInfo _read; - AsyncInfo _write; - int _maxSendPacketSize; - int _maxReceivePacketSize; -#endif + const StreamSocketPtr _stream; }; } |