]> git.mxchange.org Git - flightgear.git/blobdiff - src/Network/jpg-httpd.hxx
Fix for bug 1304 - crash loading XML route
[flightgear.git] / src / Network / jpg-httpd.hxx
index ce6e78acbbbd258fbfc0d50cdd5a349ccf342622..95568c054161d1fdd981783768076c675a05fbe6 100644 (file)
 #ifndef _FG_JPEG_HTTPD_HXX
 #define _FG_JPEG_HTTPD_HXX
 
+#include <memory> // for auto_ptr
+#include <string>
+
 #include "protocol.hxx"
 
-class HttpdImageServer;
+// forward decls
+class HttpdThread;
 
 class FGJpegHttpd : public FGProtocol
 {
-    int port;
-    HttpdImageServer *imageServer;
+    std::auto_ptr<HttpdThread> _imageServer;
 
 public:
-    FGJpegHttpd( int p );
+    FGJpegHttpd( int p, int hz, const std::string& type );
     ~FGJpegHttpd();
 
     bool open();