Qt远程对象注册表

Qt Remote Objects Registry

Qt远程对象注册表

The registry provides a simpler way to establish these connections. Every node that wants to be part of the registry's network connects to the registry. The registry is itself a specialized source object, and thus is hosted by a node. Connecting to the registry is simply a matter of passing the registry's URL to the QRemoteObjectNode or QRemoteObjectHost constructor, or passing the URL to the setRegistryUrl method.

​注册表提供了一种更简单的方法来建立这些连接。希望成为注册表网络一部分的每个节点都连接到注册表。注册表本身是一个专门的源对象,因此由节点托管。连接到注册表只需将注册表的URL传递给QRemoteObjectNode或QRemoteObject Host构造函数,或将URL传递给setRegistryUrl方法即可。

The registry is tightly integrated with QtRO. Whenever a Source is added or removed, the name/URL is updated in the registry automatically. So once your node is connected to the registry, it is not necessary to connect to any other nodes manually. If you request an object on the network and you aren't connected to the hosting node, the registry will know what URL to connect to and will initiate the connection. Once connected (and the list of available objects is passed along, including the desired Source), the initialization process for the requested Replica will start automatically.

​该注册表与QtRO紧密集成。每当添加或删除源时,注册表中的名称/URL都会自动更新。因此,一旦节点连接到注册表,就不需要手动连接到任何其他节点。如果在网络上请求一个对象,但没有连接到宿主节点,注册表将知道要连接到哪个URL,并将启动连接。一旦连接(并且传递了可用对象的列表,包括所需的源),所请求副本的初始化过程将自动开始。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值