-SG_USING_STD(string);
-
-
-const static int max_cmd_len = 256;
-
-class FGProps : public FGProtocol {
-
- enum Mode {
- PROMPT,
- DATA
- };
- Mode mode;
-
- // tree view of property list
- string path;
-
- bool reset();
- bool process_command( const char *cmd );
-
+/**
+ * Property server class.
+ * This class provides a telnet-like server for remote access to
+ * FlightGear properties.
+ */
+class FGProps : public FGProtocol,
+ public simgear::NetChannel,
+ public SGPropertyChangeListener // for subscriptions
+{
+private:
+
+ /**
+ * Server port to listen on.
+ */
+ int port;
+ simgear::NetChannelPoller poller;