]> git.mxchange.org Git - flightgear.git/blobdiff - src/Network/fg_socket.hxx
UIUC flight model contribution. This is based on LaRCsim, but can read
[flightgear.git] / src / Network / fg_socket.hxx
index 7b96bd5a642b3ba07eeaaa88ddb687a63217dd6e..21ff9953f445489f9b1fae70919bb432eb05b245 100644 (file)
 # error This library requires C++
 #endif
 
-#include <Include/compiler.h>
+#include <simgear/compiler.h>
 
 #include <string>
 
-#include <Include/fg_types.hxx>
+#include <simgear/math/fg_types.hxx>
 
 #include "iochannel.hxx"
 #include "protocol.hxx"
@@ -71,15 +71,18 @@ public:
     // open the file based on specified direction
     bool open( FGProtocol::fgProtocolDir dir );
 
-    // read data from file
+    // read data from socket
     int read( char *buf, int length );
 
-    // read data from file
+    // read data from socket
     int readline( char *buf, int length );
 
-    // write data to a file
+    // write data to a socket
     int write( char *buf, int length );
 
+    // write null terminated string to a socket
+    int writestring( char *str );
+
     // close file
     bool close();