Monitoring the Port Forwarder
The Port Forwarder uses the Observer/Observable framework, meaning that anyone wanting
to have information from/about the Port Forwarder can add a Listener to it. Currently, you can
monitor Port Forwarder status and statistics.
Note:
When using these features, it is important that the Observer.update() function does not
block.
Status
Monitoring the Port Forwarder status gives you the ability to always know the state of the Port
Forwarder, for example if it is ready to receive connections. Following is an example of the
code for monitoring the status of the Port Forwarder.
User Guide
Monitoring the Port Forwarder
April 2013
263