Exercise 3, port connection issue

Hi,

I'm executing the exercise 3 and i noticed a strange behavior (at least is strange for me :-) )

If i comment the following row:

world.ports()->getPort("world_port")->connectTo( hello.ports()->getPort("the_input_port") );

The configureHook() fails because the input port is not connected. It's fine.

What is strange is that if I write in the task browser: the_inputport.connected() it returns true.
And then is also possible to execute the configuration despite the input port is actually not connected.
In fact is not possible to read data on that port.

I suppose that it works in such way because the TaskBrowser is connected to the Hello component ports. It's right?
In such case, is possible to discover if the Hello component is connected also to others component?

Regards,
Luca

Luca

------------------------------------------------------------------------------

Luca Gherardi
PhD Student at University of Bergamo
Dept. of Information Technology and Mathematics
V.le Marconi, 5 - 24044 Dalmine, Italy
Tel +39 333 8396279
Home: http://www.lucagherardi.it