diff options
author | Mark Spruiell <mes@zeroc.com> | 2014-03-19 12:45:55 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2014-03-19 12:45:55 -0700 |
commit | cdcffbcc3c3c052afdeb772ff0167e7a90b525bb (patch) | |
tree | 4f16ee41ef7d33394c44e9db81e4d6cd89908250 /cpp/src/Ice/UdpTransceiver.h | |
parent | fixing testicedist.py for 5487 (diff) | |
download | ice-cdcffbcc3c3c052afdeb772ff0167e7a90b525bb.tar.bz2 ice-cdcffbcc3c3c052afdeb772ff0167e7a90b525bb.tar.xz ice-cdcffbcc3c3c052afdeb772ff0167e7a90b525bb.zip |
merging javascript branch
Diffstat (limited to 'cpp/src/Ice/UdpTransceiver.h')
-rw-r--r-- | cpp/src/Ice/UdpTransceiver.h | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/cpp/src/Ice/UdpTransceiver.h b/cpp/src/Ice/UdpTransceiver.h index ad6bf128619..27891d53a2f 100644 --- a/cpp/src/Ice/UdpTransceiver.h +++ b/cpp/src/Ice/UdpTransceiver.h @@ -1,6 +1,6 @@ // ********************************************************************** // -// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved. +// Copyright (c) 2003-2014 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. @@ -10,14 +10,11 @@ #ifndef ICE_UDP_TRANSCEIVER_H #define ICE_UDP_TRANSCEIVER_H -#include <Ice/InstanceF.h> -#include <Ice/TraceLevelsF.h> -#include <Ice/LoggerF.h> -#include <Ice/StatsF.h> +#include <IceUtil/Mutex.h> + +#include <Ice/ProtocolInstanceF.h> #include <Ice/Transceiver.h> -#include <Ice/Protocol.h> #include <Ice/Network.h> -#include <IceUtil/Mutex.h> #ifdef ICE_OS_WINRT # include <deque> @@ -46,18 +43,19 @@ public: #elif defined(ICE_OS_WINRT) virtual void setCompletedHandler(SocketOperationCompletedHandler^); #endif - - virtual SocketOperation initialize(Buffer&, Buffer&); + + virtual SocketOperation initialize(Buffer&, Buffer&, bool&); + virtual SocketOperation closing(bool, const Ice::LocalException&); virtual void close(); - virtual bool write(Buffer&); - virtual bool read(Buffer&); + virtual SocketOperation write(Buffer&); + virtual SocketOperation read(Buffer&, bool&); #if defined(ICE_USE_IOCP) || defined(ICE_OS_WINRT) virtual bool startWrite(Buffer&); virtual void finishWrite(Buffer&); virtual void startRead(Buffer&); virtual void finishRead(Buffer&); #endif - virtual std::string type() const; + virtual std::string protocol() const; virtual std::string toString() const; virtual Ice::ConnectionInfoPtr getInfo() const; virtual void checkSendSize(const Buffer&, size_t); @@ -66,12 +64,12 @@ public: private: - UdpTransceiver(const InstancePtr&, const Address&, const std::string&, int); - UdpTransceiver(const InstancePtr&, const std::string&, int, const std::string&, bool); + UdpTransceiver(const ProtocolInstancePtr&, const Address&, const std::string&, int); + UdpTransceiver(const ProtocolInstancePtr&, const std::string&, int, const std::string&, bool); virtual ~UdpTransceiver(); - void setBufSize(const InstancePtr&); + void setBufSize(const Ice::PropertiesPtr&); #ifdef ICE_OS_WINRT bool checkIfErrorOrCompleted(SocketOperation, Windows::Foundation::IAsyncInfo^); @@ -82,9 +80,7 @@ private: friend class UdpEndpointI; friend class UdpConnector; - const TraceLevelsPtr _traceLevels; - const Ice::LoggerPtr _logger; - const Ice::StatsPtr _stats; + const ProtocolInstancePtr _instance; const bool _incoming; const Address _addr; |