yarp icon indicating copy to clipboard operation
yarp copied to clipboard

One-sided persistent connections would be useful

Open paulfitz opened this issue 11 years ago • 2 comments

It would be good to allow connections to be specified to be persistent on one side only, to simplify program logic in situations such as #31.

paulfitz avatar May 14 '13 16:05 paulfitz

As of a66093c there is basic support for this. Code like this:

port.open("/view");
ContactStyle style;
style.persistent = true;
style.persistenceType = ContactStyle::END_WITH_TO_PORT;
yarp.connect("/src","/view",style);

would result in /src being connected to /view anytime it shows up, until /view is closed.

This feature requires name server support, so make sure to run client against a fresh version of the yarp name server.

Issue not fully resolved - pending: deal with case were a port is killed without being deregistered from the name server (so there is no trigger for removing the persistent connection).

paulfitz avatar May 23 '13 00:05 paulfitz

I didn't look at that yet, but I've been told that now we have a "node" concept... Perhaps now we could have persistent port that die when the node disappears?

drdanz avatar Feb 19 '14 11:02 drdanz