00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef _ConnectionFactory_
00022 #define _ConnectionFactory_
00023
00024 #include "qpid/sys/ConnectionCodec.h"
00025
00026 namespace qpid {
00027 namespace sys { class ProtocolAccess; }
00028 namespace broker {
00029 class Broker;
00030
00031 class ConnectionFactory : public sys::ConnectionCodec::Factory {
00032 public:
00033 ConnectionFactory(Broker& b);
00034
00035 virtual ~ConnectionFactory();
00036
00037 sys::ConnectionCodec*
00038 create(framing::ProtocolVersion, sys::OutputControl&, const std::string& id);
00039
00040 sys::ConnectionCodec*
00041 create(sys::OutputControl&, const std::string& id, sys::ProtocolAccess* a =0);
00042
00043 private:
00044 Broker& broker;
00045 };
00046
00047 }}
00048
00049
00050 #endif