diff options
Diffstat (limited to 'cpp/lib/common/sys')
-rw-r--r-- | cpp/lib/common/sys/ConnectionInputHandlerFactory.h | 4 | ||||
-rw-r--r-- | cpp/lib/common/sys/ConnectionOutputHandler.h (renamed from cpp/lib/common/sys/SessionContext.h) | 6 | ||||
-rw-r--r-- | cpp/lib/common/sys/apr/LFSessionContext.h | 4 | ||||
-rw-r--r-- | cpp/lib/common/sys/posix/EventChannelAcceptor.cpp | 2 | ||||
-rw-r--r-- | cpp/lib/common/sys/posix/EventChannelConnection.h | 8 | ||||
-rw-r--r-- | cpp/lib/common/sys/posix/check.h | 2 |
6 files changed, 13 insertions, 13 deletions
diff --git a/cpp/lib/common/sys/ConnectionInputHandlerFactory.h b/cpp/lib/common/sys/ConnectionInputHandlerFactory.h index 5bb5e17704..af7d411928 100644 --- a/cpp/lib/common/sys/ConnectionInputHandlerFactory.h +++ b/cpp/lib/common/sys/ConnectionInputHandlerFactory.h @@ -26,7 +26,7 @@ namespace qpid { namespace sys { -class SessionContext; +class ConnectionOutputHandler; class ConnectionInputHandler; /** @@ -36,7 +36,7 @@ class ConnectionInputHandler; class ConnectionInputHandlerFactory : private boost::noncopyable { public: - virtual ConnectionInputHandler* create(SessionContext* ctxt) = 0; + virtual ConnectionInputHandler* create(ConnectionOutputHandler* ctxt) = 0; virtual ~ConnectionInputHandlerFactory(){} }; diff --git a/cpp/lib/common/sys/SessionContext.h b/cpp/lib/common/sys/ConnectionOutputHandler.h index 671e00774f..91849e1dfb 100644 --- a/cpp/lib/common/sys/SessionContext.h +++ b/cpp/lib/common/sys/ConnectionOutputHandler.h @@ -18,8 +18,8 @@ * under the License. * */ -#ifndef _SessionContext_ -#define _SessionContext_ +#ifndef _ConnectionOutputHandler_ +#define _ConnectionOutputHandler_ #include <OutputHandler.h> @@ -29,7 +29,7 @@ namespace sys { /** * Provides the output handler associated with a connection. */ -class SessionContext : public virtual qpid::framing::OutputHandler +class ConnectionOutputHandler : public virtual qpid::framing::OutputHandler { public: virtual void close() = 0; diff --git a/cpp/lib/common/sys/apr/LFSessionContext.h b/cpp/lib/common/sys/apr/LFSessionContext.h index 8cf50b87ba..81cfc0efda 100644 --- a/cpp/lib/common/sys/apr/LFSessionContext.h +++ b/cpp/lib/common/sys/apr/LFSessionContext.h @@ -30,7 +30,7 @@ #include <AMQFrame.h> #include <Buffer.h> #include <sys/Monitor.h> -#include <sys/SessionContext.h> +#include <sys/ConnectionOutputHandler.h> #include <sys/ConnectionInputHandler.h> #include "APRSocket.h" @@ -40,7 +40,7 @@ namespace qpid { namespace sys { -class LFSessionContext : public virtual qpid::sys::SessionContext +class LFSessionContext : public virtual qpid::sys::ConnectionOutputHandler { const bool debug; APRSocket socket; diff --git a/cpp/lib/common/sys/posix/EventChannelAcceptor.cpp b/cpp/lib/common/sys/posix/EventChannelAcceptor.cpp index 787d12d6d1..548fbd1881 100644 --- a/cpp/lib/common/sys/posix/EventChannelAcceptor.cpp +++ b/cpp/lib/common/sys/posix/EventChannelAcceptor.cpp @@ -26,7 +26,7 @@ #include <boost/bind.hpp> #include <boost/scoped_ptr.hpp> -#include <sys/SessionContext.h> +#include <sys/ConnectionOutputHandler.h> #include <sys/ConnectionInputHandler.h> #include <sys/ConnectionInputHandlerFactory.h> #include <sys/Acceptor.h> diff --git a/cpp/lib/common/sys/posix/EventChannelConnection.h b/cpp/lib/common/sys/posix/EventChannelConnection.h index 1504e92651..da7b6dca27 100644 --- a/cpp/lib/common/sys/posix/EventChannelConnection.h +++ b/cpp/lib/common/sys/posix/EventChannelConnection.h @@ -23,7 +23,7 @@ #include "EventChannelThreads.h" #include "sys/Monitor.h" -#include "sys/SessionContext.h" +#include "sys/ConnectionOutputHandler.h" #include "sys/ConnectionInputHandler.h" #include "sys/AtomicCount.h" #include "framing/AMQFrame.h" @@ -34,13 +34,13 @@ namespace sys { class ConnectionInputHandlerFactory; /** - * Implements SessionContext and delegates to a ConnectionInputHandler + * Implements ConnectionOutputHandler and delegates to a ConnectionInputHandler * for a connection via the EventChannel. *@param readDescriptor file descriptor for reading. *@param writeDescriptor file descriptor for writing, * by default same as readDescriptor */ -class EventChannelConnection : public SessionContext { +class EventChannelConnection : public ConnectionOutputHandler { public: EventChannelConnection( EventChannelThreads::shared_ptr threads, @@ -50,7 +50,7 @@ class EventChannelConnection : public SessionContext { bool isTrace = false ); - // TODO aconway 2006-11-30: SessionContext::send should take auto_ptr + // TODO aconway 2006-11-30: ConnectionOutputHandler::send should take auto_ptr virtual void send(qpid::framing::AMQFrame* frame) { send(std::auto_ptr<qpid::framing::AMQFrame>(frame)); } diff --git a/cpp/lib/common/sys/posix/check.h b/cpp/lib/common/sys/posix/check.h index 5afbe8f5a8..57b5a5757c 100644 --- a/cpp/lib/common/sys/posix/check.h +++ b/cpp/lib/common/sys/posix/check.h @@ -45,7 +45,7 @@ class PosixError : public qpid::QpidError Exception* clone() const throw() { return new PosixError(*this); } - void throwSelf() { throw *this; } + void throwSelf() const { throw *this; } private: int errNo; |