- added HttpServer git-svn-id: http://moon:8086/svn/software/trunk/projects/FsTrack@124 b431acfa-c32f-4a4a-93f1-934dc6c82436
24 lines
442 B
C++
24 lines
442 B
C++
#ifndef HTTPSERVER
|
|
#define HTTPSERVER
|
|
|
|
#include "../JuceLibraryCode/JuceHeader.h"
|
|
#include "IHttp.hpp"
|
|
|
|
class HttpServer : public juce::Thread
|
|
{
|
|
public:
|
|
HttpServer(const char *pDocDir);
|
|
~HttpServer(void);
|
|
void addListener(IHttpListener *pListener);
|
|
|
|
private:
|
|
const char *m_docDir;
|
|
ListenerList <IHttpListener> m_listeners;
|
|
|
|
const char* getDocName(char *buffer, int buflen);
|
|
void run();
|
|
|
|
};
|
|
|
|
#endif // HTTPSERVER
|