]> git.mxchange.org Git - flightgear.git/blobdiff - src/Network/props.hxx
Fix for bug 1304 - crash loading XML route
[flightgear.git] / src / Network / props.hxx
index 35bf73488a5c9ec606b63297d889eb21b0021b34..9e7405583ee3480df5d59338a06db61c1bfbb0fa 100644 (file)
 #include <string>
 #include <vector>
 
-SG_USING_STD(string);
-SG_USING_STD(vector);
-
-#include <plib/netChannel.h>
+#include <simgear/io/sg_netChannel.hxx>
 
 #include "protocol.hxx"
 
@@ -43,7 +40,8 @@ SG_USING_STD(vector);
  * FlightGear properties.
  */
 class FGProps : public FGProtocol,
-               public netChannel
+               public simgear::NetChannel,
+               public SGPropertyChangeListener // for subscriptions
 {
 private:
 
@@ -51,14 +49,14 @@ private:
      * Server port to listen on.
      */
     int port;
-
+    simgear::NetChannelPoller poller;
 public:
     /**
      * Create a new TCP server.
      * 
      * @param tokens Tokenized configuration parameters
      */
-    FGProps( const vector<string>& tokens );
+    FGProps( const std::vector<std::string>& tokens );
 
     /**
      * Destructor.