-class trJpgFactory;
-
-
-/* simple httpd server that makes an hasty stab at following the http
- 1.1 rfc. */
-
-class HttpdImageChannel : public simgear::NetChat
-{
-
- simgear::NetBuffer buffer ;
- trJpgFactory *JpgFactory;
-
-public:
-
- HttpdImageChannel() : buffer(512) {
-
- int nWidth = fgGetInt( "/sim/startup/xsize", 800 );
- int nHeight = fgGetInt( "/sim/startup/ysize", 600 );
-
- setTerminator("\r\n");
- JpgFactory = new trJpgFactory();
- JpgFactory -> init( nWidth, nHeight );
- }
-
- ~HttpdImageChannel() {
- JpgFactory -> destroy();
- delete JpgFactory;
- }
-
- virtual void collectIncomingData (const char* s, int n) {
- buffer.append(s,n);
- }
-
- // Handle the actual http request
- virtual void foundTerminator (void);
-};
-