update cspot

This commit is contained in:
philippe44
2022-11-17 14:06:00 -08:00
parent a81d0e0513
commit 7e5f27af12
137 changed files with 6046 additions and 836 deletions

View File

@@ -2,19 +2,23 @@
#define ZEROCONFAUTHENTICATOR_H
#include <vector>
#ifndef _WIN32
#include <unistd.h>
#endif
#include <string>
#include <BaseHTTPServer.h>
#include <cstdlib>
#include "Utils.h"
#include "LoginBlob.h"
#include "Crypto.h"
#include "Task.h"
#include "BellTask.h"
#include "ConstantParameters.h"
#ifdef ESP_PLATFORM
#include "mdns.h"
#elif defined(_WIN32)
#include "mdnssvc.h"
#else
#include "dns_sd.h"
#include <unistd.h>
@@ -31,6 +35,9 @@ typedef std::function<void(std::shared_ptr<LoginBlob>)> authCallback;
class ZeroconfAuthenticator {
private:
#ifdef _WIN32
struct mdnsd* service;
#endif
int serverPort;
bool authorized = false;
std::unique_ptr<Crypto> crypto;