]> git.mxchange.org Git - flightgear.git/blobdiff - src/Network/generic.hxx
Remove hard-coded values wherever possible;
[flightgear.git] / src / Network / generic.hxx
index efb223867b781b2db3e288ab8782884aee82a69c..ec03a46ad4e26b2bd57900120897ca074c099f74 100644 (file)
@@ -42,7 +42,7 @@ public:
     ~FGGeneric();
 
     bool gen_message();
-    bool parse_message();
+    bool parse_message(int length);
 
     // open hailing frequencies
     bool open();
@@ -73,6 +73,7 @@ protected:
 private:
 
     string file_name;
+    string direction;
 
     int length;
     char buf[ FG_MAX_MSG_SIZE ];
@@ -94,8 +95,8 @@ private:
 
     bool gen_message_ascii();
     bool gen_message_binary();
-    bool parse_message_ascii();
-    bool parse_message_binary();
+    bool parse_message_ascii(int length);
+    bool parse_message_binary(int length);
     void read_config(SGPropertyNode *root, vector<_serial_prot> &msg);
     bool exitOnError;
 };