readme
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· 代码 · 共 87 行
TXT
87 行
//README,v 1.1 2003/07/16 04:31:02 yamuna Exp
Case
----
This test creates a distributed DT ie. a DT that spans multiple
hosts/processes. In this test they span two hosts/processes. The DT on
one host/process makes a remote invocation on another host/process and
hence executes in the context of the second host/process before
returning to the first host/process. The DT makes a one-way and a
two-way invocations. In a one-way invocation a new DT is created to
continue servicing the request. In the case of a two-way invocation
the same DT executes on the second host/process.
The DT information is propagated across hosts/processes via the
service contexts. The service context is populated with the DT info
using the Client Interceptor when sending a request. The DT info is
retreived from the service context on the server using the Server
Interceptor when receiving the request.
This test also illustrates the propagation of the
CORBA::THREAD_CANCELLED exception to the point of origin of the DT
when it is cancelled on a remote host/process it is currently
executing in.
To Run
------
Start the following processes in that order.
./test_server -f <ior_filename>
-f <ior_filename> --> Name of the file in which the server IOR will be written
./test_client -f <ior_filename>
-f <ior_filename> --> Name of the file in which the server IOR was written
Typical Output
--------------
Server
.......
Server_Interceptor::receive_request_service_contexts
Server_Interceptor::receive_request
Request from Distributable Thread
The Guid is 2
One-Way Message = file:///project/ace/yamuna/ior_file
Server_Interceptor::send_reply
Server_Interceptor::receive_request_service_contexts
Server_Interceptor::receive_request
Request from Distributable Thread
The Guid is 1
Two-Way Message = file:///project/ace/yamuna/ior_file
Server_Interceptor::send_reply
Distributable Thread - 1 is cancelled
Server_Interceptor::receive_request_service_contexts
Server_Interceptor::receive_request
Invalid Service Request
Server_Interceptor::send_reply
Client
.......
Making a one-way request
Client_Interceptor::send_request
The Guid is 2
Client_Interceptor::receive_other
Making a two-way request
Client_Interceptor::send_request
Client_Interceptor::receive_exception
Received Exception IDL:omg.org/CORBA/THREAD_CANCELLED:1.0
Distributable Thread - 1 is cancelled
(8752|1024) EXCEPTION, Caught exception:
system exception, ID 'IDL:omg.org/CORBA/THREAD_CANCELLED:1.0'
TAO exception, minor code = 0 (unknown location; unspecified errno), completed = NO
Client_Interceptor::send_request
Client_Interceptor::receive_other
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?