<!doctype html public “-//w3c//dtd html 4.0 transitional//en”>
Xiaodan Tang a écrit :Chris give a good point that we seems didn't make it clear
in previos post.Even though, keep a nd is not a good thing, keep a coid is totally
safe.Once you established a connection (ConnectAttach()), that connection
will always valid, until you ConnectDetach(). If the node you are
talking to, is gone (and even comming back later), next time you
using the connection, you will got error.-xtang
Chris McKillop <> wrote:
> Andrew Thomas <> wrote:> Hey Andrew...
>> 1) A must always know B's node FQNN in order for A to identify itself
>> to B. There is no way for A to use the same information to
>> identify itself to two different processes unless it does so using
>> its FQNN. This is annoying and won't work in the case where A does
>> not know which node B is on. It is certainly a step backward from
>> QNX4.
>>> Really? I don't think so at all. Instead of having to map a node#
> to a specific MAC address and keeping that constant on all machines you
> only need to keep a mapping of a name to an IP address in /etc/hosts
> and you can change one machine in the system without having to touch
> all the other machines. And since you control the entries in /etc/hosts
> you can force the names to a fixed length.> Here is something I am not really clear on in all your postings. You are
> worried that getting the nd from the name will cost you too much if you have
> to do it everytime you want to send a message. Are you tearing down the
> connection between every message? That is the only time you need you need
> to know the nd, once you have connection established you can keep using that
> until it becomes invalid and then, and only then, do you have to lookup
> the nd of the remote node again. This is very different from QNX4 in which
> the connection is tied to the PID. And if you are tearing down the connection
> between every message then the cost of looking up the nd is gonna be 0
> relative to the cost of setting up the connection over the network. :wink: Maybe
> I am missing something in what you said....> chris
> --
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> "The faster I go, the behinder I get."
> Chris McKillop -- Lewis Carroll --
> Software Engineer, QSSL
> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
It's maybe easier to find a node in qrtp than in qnx4. The problem,
not yet solved in qrtp is, how to find a service?
And it's, I think, the big difference. You gave us an easier way to
find a node, as you explain, we no more need to establish a relationship,
on all nodes, between mac address and node ID, but in fact, knowing a node
is not really important.
When client wants a service, it just wants to ask for the service name,
knowing where this service run and how to connect to it, is your problem,
not ours. From this point of view, qrtp is well a step backward from qrtp!
Since it's not yet possible to use global names through qnet!
Alain.