28 lines
696 B
C++
28 lines
696 B
C++
/* IAsyncServer.hpp
|
|
* Copyright © 2024 Saul D. Beniquez
|
|
* License: Mozilla Public License v. 2.0
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public License,
|
|
* v.2.0. If a copy of the MPL was not distributed with this file, You can
|
|
* obtain one at https://mozilla.org/MPL/2.0/.
|
|
*/
|
|
#pragma once
|
|
|
|
#include <filesystem>
|
|
|
|
namespace {
|
|
namespace fs = std::filesystem;
|
|
}
|
|
|
|
namespace mdml {
|
|
struct IAsyncClient;
|
|
|
|
struct IAsyncServer {
|
|
virtual void creasteSocket(const fs::path& path) = 0;
|
|
virtual void listen(std::function<bool>&& handler) = 0;
|
|
};
|
|
}
|
|
|
|
// clang-format off
|
|
// vim: set foldmethod=syntax foldminlines=10 textwidth=80 ts=8 sts=0 sw=8 noexpandtab ft=cpp.doxygen :
|