X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FNetwork%2Ffg_serial.hxx;h=f95b813d1b990e018f56e6c2c0114f11adc0748f;hb=9a3b25e4fa4b9acb7b444e6e33bcba1c8310b888;hp=ba88881136be9537f6ab87afcf5fcaf0e6735b7b;hpb=4f294285fec6298b2af5495acc3ec812f062e4e4;p=flightgear.git diff --git a/src/Network/fg_serial.hxx b/src/Network/fg_serial.hxx index ba8888113..f95b813d1 100644 --- a/src/Network/fg_serial.hxx +++ b/src/Network/fg_serial.hxx @@ -29,7 +29,7 @@ # error This library requires C++ #endif -#include "Include/compiler.h" +#include #include @@ -39,7 +39,7 @@ // # include // #endif -#include +#include #include "iochannel.hxx" #include "protocol.hxx" @@ -70,9 +70,12 @@ public: // read a line of data, length is max size of input buffer int readline( char *buf, int length ); - // write data to a file + // write data to port int write( char *buf, int length ); + // write null terminated string to port + int writestring( char *str ); + // close port bool close();