This commit is contained in:
2025-02-21 19:20:29 +03:00
parent b860900682
commit 683114b307
2 changed files with 73 additions and 20 deletions

View File

@@ -5,7 +5,7 @@
int main()
{
asio::io_context ctx;
asio::io_context ctx(2);
auto logger = spdlog::stdout_color_mt("STDOUT_LOGGER");
logger->set_level(spdlog::level::debug);
@@ -14,8 +14,9 @@ int main()
mcc::MccMountServer server(ctx, logger);
mcc::MccServerEndpoint epn(std::string_view("local://seqpacket/@tmp/BM700_SERVER_SOCK"));
// mcc::MccServerEndpoint epn(std::string_view("tcp://localhost:12345/tmp/BM700_SERVER_SOCK"));
// mcc::MccServerEndpoint epn(std::string_view("local://seqpacket/tmp/BM700_SERVER_SOCK"));
// mcc::MccServerEndpoint epn(std::string_view("local://stream/tmp/BM700_SERVER_SOCK"));
mcc::MccServerEndpoint epn(std::string_view("tcp://localhost:12345"));
asio::co_spawn(ctx, server.listen(epn), asio::detached);