📄 readme
字号:
Event Notification ServiceFile: examples/NotifyService/Messenger/READMEThis directory contains a simple example of using the Notification Service.This example extends the Messenger example in GettingStarted directory to illustrate how the Notification channel can be used to push messagesfrom the supplier to the consumer. Structured events are used to demonstratethe operation of the channel. The example uses the push/push model.The MessengerServer in this example plays the role of a server forthe MessengerClient and the role of a supplier for the MessengerConsumer. The flow of messages is shown below:MessengerClient->MessengerSupplier->NotificationChannel->MessengerConsumer.The Client code is stored in:examples/NotifyService/Messenger/MessengerClient.cppThe Server code is stored in:examples/NotifyService/Messenger/MessengerServer.cppThe Consumer code is stored in:examples/NotifyService/Messenger/MessengerConsumer.cppHow to Run----------To start the Naming Service:----------------------------$TAO_ROOT/orbsvcs/Naming_Service/Naming_Service -o ns.ior&To start the Notification Service:---------------------------------$TAO_ROOT/orbsvcs/Notify_Service/Notify_Service -ORBInitRef NameService=file://ns.ior&To start the server/supplier----------------------------./MessengerServer -ORBInitRef NameService=file://ns.iorTo start the consumer---------------------./MessengerConsumer -ORBInitRef NameService=file://ns.iorTo start the client-------------------./MessengerClient -ORBInitRef NameService=file://ns.iorExeuction via Perl Script-------------------------A Perl script has been created to automate the steps shownabove. This script can be run via the following command:./run_test.pl
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -