Added NdnProtocolInfo.jsm to store static info such as the connected host.  Updated ndnProtocolService.js to report the hub host and port when connected, and updated the NDN Toolbar to display it.
diff --git a/js/ndnProtocol/components/ndnProtocolService.js b/js/ndnProtocol/components/ndnProtocolService.js
index b747ee5..8641755 100644
--- a/js/ndnProtocol/components/ndnProtocolService.js
+++ b/js/ndnProtocol/components/ndnProtocolService.js
@@ -14,6 +14,7 @@
 Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");

 Components.utils.import("chrome://modules/content/ndn-js.jsm");

 Components.utils.import("chrome://modules/content/ContentChannel.jsm");

+Components.utils.import("chrome://modules/content/NdnProtocolInfo.jsm");

 

 function NdnProtocol() {

     // TODO: Remove host: null when null is the default.

@@ -124,6 +125,9 @@
         dump("NdnProtocol.ContentClosure: contentObject.content is null\n");

         return Closure.RESULT_ERR;

     }

+    

+    // Now that we're connected, report the host and port.

+    setConnectedNdnHub(this.ndn.host, this.ndn.port);

 

     // If !this.uriEndsWithSegmentNumber, we use the segmentNumber to load multiple segments.

     var segmentNumber = null;