From 8288c32d419ee918909d110eb2ae11dbc609110f Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Tue, 7 Sep 2021 19:46:23 +0300 Subject: [PATCH] Update Net.cpp --- module/PocoLib/Net.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/module/PocoLib/Net.cpp b/module/PocoLib/Net.cpp index cab63644..31a8d7c5 100644 --- a/module/PocoLib/Net.cpp +++ b/module/PocoLib/Net.cpp @@ -17,9 +17,8 @@ void TerminatePocoNet() } // ================================================================================================ -void Register_POCO_Net(HSQUIRRELVM vm, Table &) +void Register_POCO_Net(HSQUIRRELVM vm, Table & ns) { - Table ns(vm); // -------------------------------------------------------------------------------------------- ns.Bind(_SC("WsClient"), Class< WsClient, NoCopy< WsClient > >(ns.GetVM(), SqWsClient::Str) @@ -47,8 +46,6 @@ void Register_POCO_Net(HSQUIRRELVM vm, Table &) .CbFunc(_SC("RecvStringFrameIn"), &WsClient::RecvStringFrameIn) ); // -------------------------------------------------------------------------------------------- - RootTable(vm).Bind(_SC("SqNet"), ns); - // -------------------------------------------------------------------------------------------- ConstTable(vm).Enum(_SC("SqWsFrameFlags"), Enumeration(vm) .Const(_SC("FIN"), static_cast< SQInteger >(Poco::Net::WebSocket::FRAME_FLAG_FIN)) .Const(_SC("RSV1"), static_cast< SQInteger >(Poco::Net::WebSocket::FRAME_FLAG_RSV1))