readme
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· 代码 · 共 31 行
TXT
31 行
// README,v 1.2 2001/11/21 16:13:57 schmidt Exp
Typed Events
============
This is a demonstration of the CORBA 2.3 valuetype feature.
Event_Types.idl defines a hierarchy of event classes. The common
attributes (indeed not CORBA attributes, they're state members) like
creation time and id of the origin are in a base class. Concrete
events like Temperature, Position and Log Message are derived from
this class.
The client sends a few random events to the server. The server has
suitable implementations of the event classes. So it is able to show
the incoming events by invoking the do_print () operation, which is
declared in the Event baseclass. After that the server does an
"alarm" check on the event. For each possible origin id (KITCHEN,
BATHROOM) a criterion has been registered. The criterion which equals
the origin id of the event is searched and then asked with is_critical
(event).
Finally a list with all the events which causes an alarm is requested
by the client.
Start with:
% ./server -o ior
% ./client -f ior [-x]
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?