]> git.mxchange.org Git - flightgear.git/blobdiff - src/Network/props.cxx
Document that property write-protection is not a security measure
[flightgear.git] / src / Network / props.cxx
index 436c2af73eb0adee77233262a75e2f276fb8ea9e..58905e2f30a8a1c953cf05e017cac6d0239e0de4 100644 (file)
@@ -185,7 +185,7 @@ void PropsChannel::unsubscribe(const ParameterList &param) {
    SGPropertyNode *n = globals->get_props()->getNode( param[1].c_str() );
    if (n)
     n->removeChangeListener( this );
-  } catch (sg_exception &e) {
+  } catch (sg_exception&) {
          error("Error:Listener could not be removed");
   }
 }
@@ -594,6 +594,8 @@ FGProps::open()
         return false;
     }
 
+    poller.addChannel(this);
+    
     SG_LOG( SG_IO, SG_INFO, "Props server started on port " << port );
 
     set_enabled( true );
@@ -616,7 +618,7 @@ FGProps::close()
 bool
 FGProps::process()
 {
-    simgear::NetChannel::poll();
+    poller.poll();
     return true;
 }
 
@@ -632,4 +634,5 @@ FGProps::handleAccept()
             << addr.getHost() << ":" << addr.getPort() );
     PropsChannel* channel = new PropsChannel();
     channel->setHandle( handle );
+    poller.addChannel( channel );
 }