]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/JSBSim/FGfdmSocket.h
Latest JSBSim changes, including some gear tweaking from Jon and some
[flightgear.git] / src / FDM / JSBSim / FGfdmSocket.h
index f2009d46f78058513616bbfd76ff0c2514f3019d..0a405f32bd8f6502fd04aadcbeecfbd0b2a687d2 100644 (file)
@@ -54,16 +54,22 @@ INCLUDES
      SG_USING_STD(endl);
 #  endif
 #else
-#  include <iostream>
-#  include <fstream>
 #  include <string>
-   using std::cout;
-   using std::endl;
+#  if defined(sgi) && !defined(__GNUC__)
+#    include <iostream.h>
+#    include <fstream.h>
+#  else
+#    include <iostream>
+#    include <fstream>
+     using std::cout;
+     using std::endl;
+#  endif
 #endif
 
 #include <sys/types.h>
+#include "FGJSBBase.h"
 
-#if defined(__BORLANDC__) || defined(_MSC_VER)
+#if defined(__BORLANDC__) || defined(_MSC_VER) || defined(__MINGW32__)
   #include <winsock.h>
 #else
   #include <sys/socket.h>
@@ -84,13 +90,14 @@ CLASS DECLARATION
 
 using std::string;
 
-class FGfdmSocket {
+class FGfdmSocket : public FGJSBBase
+{
 public:
   FGfdmSocket(string, int);
   ~FGfdmSocket();
   void Send(void);
   void Append(const char*);
-  void Append(float);
+  void Append(double);
   void Append(long);
   void Clear(void);
 
@@ -100,6 +107,7 @@ private:
   struct sockaddr_in scktName;
   struct hostent *host;
   string buffer;
+  void Debug(int from);
 };
 
 #endif