readme
来自「在开发TAO的命名服务中用到的服务端及客户端源代码。」· 代码 · 共 33 行
TXT
33 行
DevGuideExamples/NamingService/Naming_Context_Ext/README
The example in this directory illustratues how to convert between CosNames,
Stringified Names, and URLs.
A Name can be converted to a stringified Name by to_string operation. A stringified
Name can be converted to a Name by to_name operation. The resolve_str operation
resolves an object by passing a strigified Name.
The MessengerServer writes its corbaname URL to a file by calling to_url and
the MessengerClient reads the URL file to get the MessengerServer object reference.
How to Run:
-----------
To start the Naming_Service:
----------------------------
$TAO_ROOT/orbsvcs/Naming_Service/Naming_Service -ORBEndPoint iiop://localhost:2809 &
To start the server:
------------------
./MessengerServer -ORBInitRef NameService=iiop://localhost:2809/NameService
To start the client:
------------------
./MessengerClient
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?