1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00

Update Net.cpp

This commit is contained in:
Sandu Liviu Catalin 2021-09-07 19:46:23 +03:00
parent e577a96f7e
commit 8288c32d41

View File

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