MeshTalos/meshtalos.hpp
2025-09-10 20:44:58 +08:00

38 lines
700 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#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