# include STL_STRING
# include STL_IOSTREAM
# include STL_FSTREAM
-# if !defined(SG_HAVE_NATIVE_SGI_COMPILERS)
- SG_USING_STD(cout);
- SG_USING_STD(endl);
-# endif
+ SG_USING_STD(cout);
+ SG_USING_STD(endl);
#else
# include <string>
# if defined(sgi) && !defined(__GNUC__)
using std::string;
+namespace JSBSim {
+
class FGfdmSocket : public FGJSBBase
{
public:
~FGfdmSocket();
void Send(void);
void Append(const char*);
- void Append(float);
+ void Append(double);
void Append(long);
void Clear(void);
+ bool GetConnectStatus(void) {return connected;}
private:
int sckt;
struct sockaddr_in scktName;
struct hostent *host;
string buffer;
+ bool connected;
+ void Debug(int from);
};
-
+}
#endif