readme

来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· 代码 · 共 28 行

TXT
28
字号
Subscribe example:
----------------
Note: This example is under construction.

The Notification service must be up and running before launching this example.
(See the README under $TAO_ROOT/orbsvcs/Notify_Service for more details.)

Description:
------------
This example sets subscription event type constraints (domain_name,type_name):

At the consumer admin. C1 = ("domain_A", "Type_1").
This means that all consumers connected to this admin object are interested
in receiving events of "domain_A" and "Type_1".

At consumer 1, C2 = ("domain_B", Type_2")
At consumer 2, C3 = ("domain_C", Type_3")

A supplier then send events of all 3 types to the event channel.
i,e. event E1 with event type C1,
     event E2 with event type C2 and
     event E3 with event type C3.

From the subscriptions, consumer1 receives E1 and E2, (not E3) and
consumer2 receives E1 and E3 (not E2).

running the ./Subscribe example will output the events received by each
consumer.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?