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