Menu Search

2.2. .NET Binding for the C++ Messaging Client Examples

This chapter describes the various sample programs that are available to illustrate common Qpid Messaging usage.

Table 2.2. Example : Client - Server

Example NameExample Description
csharp.example.serverCreates a Receiver and listens for messages. Upon message reception the message content is converted to upper case and forwarded to the received message's ReplyTo address.
csharp.example.clientSends a series of messages to the Server and prints the original message content and the received message content.

Table 2.3. Example : Map Sender – Map Receiver

Example NameExample Description
csharp.map.receiverCreates a Receiver and listens for a map message. Upon message reception the message is decoded and displayed on the console.
csharp.map.senderCreates a map message and sends it to map.receiver. The map message contains values for every supported .NET Messaging Binding data type.

Table 2.4. Example : Spout - Drain

Example NameExample Description
csharp.example.spoutSpout is a more complex example of code that generates a series of messages and sends them to peer program Drain. Flexible command line arguments allow the user to specify a variety of message and program options.
csharp.example.drainDrain is a more complex example of code that receives a series of messages and displays their contents on the console.

Table 2.5. Example : Map Callback Sender – Map Callback Receiver

Example NameExample Description
csharp.map.callback.receiverCreates a Receiver and listens for a map message. Upon message reception the message is decoded and displayed on the console. This example illustrates the use of the C# managed code callback mechanism provided by .NET Messaging Binding Managed Callback Library.
csharp.map.callback.senderCreates a map message and sends it to map_receiver. The map message contains values for every supported .NET Messaging Binding data type.

Table 2.6. Example - Declare Queues

Example NameExample Description
csharp.example.declare_queuesA program to illustrate creating objects on a broker. This program creates a queue used by spout and drain.

Table 2.7. Example: Direct Sender - Direct Receiver

Example NameExample Description
csharp.direct.receiverCreates a Receiver and listens for a messages. Upon message reception the message is decoded and displayed on the console.
csharp.direct.sender Creates a series of messages and sends them to csharp.direct.receiver.

Table 2.8. Example: Hello World

Example NameExample Description
csharp.example.helloworldA program to send a message and to receive the same message.