Table 5.2. Example : Client - Server
Example | Client - Server |
---|---|
csharp.example.server | Creates 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.client | Sends a series of messages to the Server and prints the original message content and the received message content. |
Table 5.3. Example : Map Sender – Map Receiver
Example | Map Sender - Map Receiver |
---|---|
csharp.map.receiver | Creates a Receiver and listens for a map message. Upon message reception the message is decoded and displayed on the console. |
csharp.map.sender | Creates a map message and sends it to map.receiver. The map message contains values for every supported .NET Messaging Binding data type. |
Table 5.4. Example : Spout - Drain
Example | Spout - Drain |
---|---|
csharp.example.spout | Spout 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.drain | Drain is a more complex example of code that receives a series of messages and displays their contents on the console. |
Table 5.5. Example : Map Callback Sender – Map Callback Receiver
Example | Map Callback Sender - Map Callback Receiver |
---|---|
csharp.map.callback.receiver | Creates 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.sender | Creates a map message and sends it to map_receiver. The map message contains values for every supported .NET Messaging Binding data type. |
Table 5.6. Example - Declare Queues
Example | Declare Queues |
---|---|
csharp.example.declare_queues | A program to illustrate creating objects on a broker. This program creates a queue used by spout and drain. |
Table 5.7. Example: Direct Sender - Direct Receiver
Example | Direct Sender - Direct Receiver |
---|---|
csharp.direct.receiver | Creates 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 5.8. Example: Hello World
Example | Hello World |
---|---|
csharp.example.helloworld | A program to send a message and to receive the same message. |