readme
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· 代码 · 共 63 行
TXT
63 行
// README,v 1.1 2003/06/18 05:43:54 jwillemsen Exp
Goals:
------
This is the most basic test for federating Event Channels via
multicast or udp. Two Event Channels participate: one sends out its events
via multicast (or udp), while the second one listens for events on
multicast (or udp).
This test can be run with two different configurations: multicast is used
for federating event channels in one and udp is used in another. The
test uses ECG_Mcast_Gateway configured with Simple Address Server and
Simple Mcast Handler or UDP Handler components.
Description:
------------
There are three executables: event supplier, event consumer,
and federation-enabled Event Channel, of which we run two instances -
one for supplier and one for consumer.
Supplier pushes 100 events to its Event Channel while the consumer
waits for events from its EC. Once the consumer receives 100 events
it expects, it destroys its EC and exits.
Command-line Options:
---------------------
Consumer: $consumer -ORBInitRef Event_Service=<ior>
Supplier: $supplier -ORBInitRef Event_Service=<ior>
Mcast-equipped EC: $gateway_ec -ORBsvcconf <conf_file> -i <ior_file>
where
<ior_file> is the name of the file to which the ior of the Event
Channel will be printed
<conf_file> is a service conf file used to configure the Event Channel
and the multicast components. See consumer-ec.conf or
supplier-ec.conf for examples, or
$TAO_ROOT/orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.h for
all valid multicast configuration options.
To run:
-------
Automagically (runs all executables, processes output):
$ run_test.pl
Manually:
Multicast Federation test
$gateway-ec -ORBsvcconf consumer-ec.conf -i consumer-ec.ior
$consumer -ORBInitRef Event_Service=file://consumer-ec.ior
$gateway-ec -ORBsvcconf supplier-ec.conf -i supplier-ec.ior
$supplier -ORBInitRef Event_Service=file://supplier-ec.ior
UDP Federation test
$gateway-ec -ORBsvcconf udp-consumer-ec.conf -i consumer-ec.ior
$consumer -ORBInitRef Event_Service=file://consumer-ec.ior
$gateway-ec -ORBsvcconf udp-supplier-ec.conf -i supplier-ec.ior
$supplier -ORBInitRef Event_Service=file://supplier-ec.ior
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?