diff options
Diffstat (limited to 'cpp/test/Ice/background/Transceiver.h')
-rw-r--r-- | cpp/test/Ice/background/Transceiver.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/cpp/test/Ice/background/Transceiver.h b/cpp/test/Ice/background/Transceiver.h index 770272557b2..407e347712a 100644 --- a/cpp/test/Ice/background/Transceiver.h +++ b/cpp/test/Ice/background/Transceiver.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. @@ -19,19 +19,20 @@ public: virtual IceInternal::NativeInfoPtr getNativeInfo(); + virtual IceInternal::SocketOperation closing(bool, const Ice::LocalException&); virtual void close(); - virtual bool write(IceInternal::Buffer&); - virtual bool read(IceInternal::Buffer&); + virtual IceInternal::SocketOperation write(IceInternal::Buffer&); + virtual IceInternal::SocketOperation read(IceInternal::Buffer&, bool&); #ifdef ICE_USE_IOCP virtual bool startWrite(IceInternal::Buffer&); virtual void finishWrite(IceInternal::Buffer&); virtual void startRead(IceInternal::Buffer&); virtual void finishRead(IceInternal::Buffer&); #endif - virtual std::string type() const; + virtual std::string protocol() const; virtual std::string toString() const; virtual Ice::ConnectionInfoPtr getInfo() const; - virtual IceInternal::SocketOperation initialize(IceInternal::Buffer&, IceInternal::Buffer&); + virtual IceInternal::SocketOperation initialize(IceInternal::Buffer&, IceInternal::Buffer&, bool&); virtual void checkSendSize(const IceInternal::Buffer&, size_t); private: @@ -44,6 +45,10 @@ private: const IceInternal::TransceiverPtr _transceiver; const ConfigurationPtr _configuration; bool _initialized; + + IceInternal::Buffer _readBuffer; + IceInternal::Buffer::Container::const_iterator _readBufferPos; + bool _buffered; }; #endif |