qpid::broker::InProcessBroker Class Reference

A broker that implements client::Connector allowing direct in-process connection of client to broker. More...

#include <InProcessBroker.h>

List of all members.

Public Types

typedef std::vector< TaggedFrameConversation
 CLIENT
 BROKER
enum  Sender { CLIENT, BROKER }

Public Member Functions

 InProcessBroker (framing::ProtocolVersion ver=framing::highestProtocolVersion)
void connect (const std::string &, int)
void init ()
void close ()
void setInputHandler (framing::InputHandler *handler)
 Client's input handler.
void send (framing::AMQFrame *frame)
 Called by client to send a frame.

Public Attributes

Conversation conversation
 Entire client-broker conversation is recorded here.

Classes

struct  TaggedFrame
 A frame tagged with the sender. More...


Detailed Description

A broker that implements client::Connector allowing direct in-process connection of client to broker.

Used to write round-trip tests without requiring an external broker process.

Also allows you to "snoop" on frames exchanged between client & broker.

see FramingTest::testRequestResponseRoundtrip() for example of use.


The documentation for this class was generated from the following file:
Generated on Tue Apr 17 14:22:15 2007 for Qpid by  doxygen 1.4.7