-class trJpgFactory;
-
-
-/* simple httpd server that makes an hasty stab at following the http
- 1.1 rfc. */
-
-class HttpdImageChannel : public netChat
-{
-
- netBuffer buffer ;
- trJpgFactory *JpgFactory;
-
-public:
-
- HttpdImageChannel() : buffer(512) {
- setTerminator("\r\n");
- JpgFactory = new trJpgFactory();
-
- // This is a terrible hack but it can't be initialized until
- // after OpenGL is up an running
- JpgFactory->init(400,300);
- }
-
- ~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);
-};
-