If you want to use streams you should know that they are easiest to use if you either a) register your modules in the PsySpec or b) you use the same XML to send the full registration from your external module code. If you use this method, you can specify in the registration which streams you are interested in and this will be connected for you automatically and all you need to do is follow the instructions in the tutorial.
I would highly recommend that you instead of using addTrigger() use sendRegistration() with the full XML - see the examples JavaReader/CppReader. And I would also recommend that you upgrade to 1.0.6 from
http://www.mindmakers.org/projects/PsycloneIf you choose not to, you will have to manually connect to the streams, like in the good old days. This is a bit more work and not compatible with using contexts and phases, but doable for simple modules.
This is the code to connect manually to a stream (in Java, C++ is almost identical):
String stream = "My.Full.Stream.Name";
TCPLocation loc = plug.resolve(stream);
if ((loc == null) || (!loc.isValid())) {
return false;
}
MediaConnection mediaCon = new MediaConnection(myName, loc);
if (!mediaCon.init()) {
mediaCon.destroy();
mediaCon = null;
return false;
}
Regardless, do consider upgrading to 1.0.6, as both the code and the manual/tutorial is much improved.
Best,
Thor