Skip to content

Proper usage of NetworkBase::isConnected() #680

Answered by Nicogene
paliasgh asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @paliasgh,

it is a while since I don't work on YARP so my memories could be wrong, but if I recall correctly that isConnected you invoked checks if there is a connection between the src and dst using the default carrier, i.e. tcp.

Your ports are connected using fast_tcp, then you should use this function as follows:

yarp::os::Network::isConnected("/icub-pli/tagsRight:o","/icub-pli/tagsRight:i", "fast_tcp",false);

it is a while that I don't work on YARP so my memories could be wrong, but if I recall correctly that isConnected you invocked checks if there is a connection between the src and dst using the default carrier, i.e. tcp.

Unfortunately, this is not made explicit in the documen…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@traversaro
Comment options

Answer selected by paliasgh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants