Adaptation to libdelphi v2.11+.

This commit is contained in:
Преподобный Ален
2025-12-03 22:56:03 +03:00
parent c8e5543688
commit a79b4a03a6
3 changed files with 5 additions and 5 deletions

View File

@@ -88,7 +88,7 @@ namespace Apostol {
pClient->AllocateEventHandlers(Server());
#if defined(_GLIBCXX_RELEASE) && (_GLIBCXX_RELEASE >= 9)
pClient->OnVerbose([this](auto && Sender, auto && AConnection, auto && AFormat, auto && args) { DoVerbose(Sender, AConnection, AFormat, args); });
//pClient->OnVerbose([this](auto && Sender, auto && AFormat, auto && args) { DoVerbose(Sender, AFormat, args); });
pClient->OnException([this](auto && AConnection, auto && AException) { DoException(AConnection, AException); });
pClient->OnEventHandlerException([this](auto && AHandler, auto && AException) { DoEventHandlerException(AHandler, AException); });
pClient->OnNoCommandHandler([this](auto && Sender, auto && AData, auto && AConnection) { DoNoCommandHandler(Sender, AData, AConnection); });
@@ -104,7 +104,7 @@ namespace Apostol {
pClient->OnKey([this](auto && Sender, auto && Request, auto && Response) { DoKeyEvent(Sender, Request, Response); });
pClient->OnWebSocketEvent([this](auto && Sender, auto && Request, auto && Response) { DoWebSocketClientEvent(Sender, Request, Response); });
#else
pClient->OnVerbose(std::bind(&CWebSocketModule::DoVerbose, this, _1, _2, _3, _4));
//pClient->OnVerbose(std::bind(&CWebSocketModule::DoVerbose, this, _1, _2, _3));
pClient->OnException(std::bind(&CWebSocketModule::DoException, this, _1, _2));
pClient->OnEventHandlerException(std::bind(&CWebSocketModule::DoEventHandlerException, this, _1, _2));
pClient->OnNoCommandHandler(std::bind(&CWebSocketModule::DoNoCommandHandler, this, _1, _2, _3));