30 lines
481 B
C++
30 lines
481 B
C++
|
|
|
|
|
|
extern "C" {
|
|
#include <arpa/inet.h>
|
|
}
|
|
|
|
#include <expected>
|
|
#include <string>
|
|
#include <vector>
|
|
#include <span>
|
|
#include <iostream>
|
|
#include <thread>
|
|
#include <chrono>
|
|
#include <cstring>
|
|
|
|
#include <tunnel.hpp>
|
|
#include <service.hpp>
|
|
|
|
#include <hello.pb.h>
|
|
|
|
using namespace std::chrono_literals;
|
|
|
|
class Server {
|
|
private:
|
|
Interface iface;
|
|
public:
|
|
std::expected<void, std::string> Create(const std::string name, const std::string addr, const int prefix);
|
|
};
|