38 lines
700 B
C++
38 lines
700 B
C++
#pragma once
|
||
#include <string>
|
||
#if defined _WIN32 || defined __CYGWIN__
|
||
#ifdef BUILDING_MESHTALOS
|
||
#define MESHTALOS_PUBLIC __declspec(dllexport)
|
||
#else
|
||
#define MESHTALOS_PUBLIC __declspec(dllimport)
|
||
#endif
|
||
#else
|
||
#ifdef BUILDING_MESHTALOS
|
||
#define MESHTALOS_PUBLIC __attribute__((visibility("default")))
|
||
#else
|
||
#define MESHTALOS_PUBLIC
|
||
#endif
|
||
#endif
|
||
|
||
#include "./mongoose.h"
|
||
#include <lfs.h>
|
||
|
||
namespace meshtalos {
|
||
|
||
// Ciallo~(∠・ω< )⌒☆
|
||
class MESHTALOS_PUBLIC Meshtalos {
|
||
|
||
public:
|
||
std::string listen_address = "0.0.0.0:8080";
|
||
lfs_t *_lfs;
|
||
Meshtalos(lfs_t *lfs = NULL);
|
||
void listen();
|
||
int get_number() const;
|
||
|
||
private:
|
||
struct mg_mgr _mgr;
|
||
|
||
int number;
|
||
};
|
||
|
||
} // namespace meshtalos
|