Is there a quick way I can test whether I can connect to TREP. For instance, if am connecting via OpenVPN and I have not made the OpenVPN connection before attempting to connect to TREP, I would like to know so I can exit the application. Basically I need something similar to how I can test OpenDACS daemon.
To me, the way to check if OpenVPN connection is successfully established,
programmatically, would be outside of RFA, via OS/shell.
By searching on this topic I can see developers recommending multiple approaches, none very simple.
The way I would prefer, personally, would be this one, via netstat and examining the output.
Another approach is openvpn --show-net
Hope this helps,
To test TREP with RFA, you can run the StaterConsumer (RFA C++, RFA .NET) or QuickStartConsumer (RFA Java) example in the RFA package. Otherwise, you can use a tool from our partner as mentioned in this question.
To test DACS Sink Daemon with OpenDACS API, you can run the dacsSubscribeClient example in OpenDACS API package or follow OpenDACS tutorials.
Thanks @ jirapongse.phuriphanvichai. This does not answer my question. What I am interesting in programmatically is this. Am connecting to TREP test account via OpenVPN. If I have not initiated the OpenVPN connection and I run this StartConsumer examples, the application get stucked and I wont know what is going on.