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))