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:
parent
e577a96f7e
commit
8288c32d41
@ -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"),
|
ns.Bind(_SC("WsClient"),
|
||||||
Class< WsClient, NoCopy< WsClient > >(ns.GetVM(), SqWsClient::Str)
|
Class< WsClient, NoCopy< WsClient > >(ns.GetVM(), SqWsClient::Str)
|
||||||
@ -47,8 +46,6 @@ void Register_POCO_Net(HSQUIRRELVM vm, Table &)
|
|||||||
.CbFunc(_SC("RecvStringFrameIn"), &WsClient::RecvStringFrameIn)
|
.CbFunc(_SC("RecvStringFrameIn"), &WsClient::RecvStringFrameIn)
|
||||||
);
|
);
|
||||||
// --------------------------------------------------------------------------------------------
|
// --------------------------------------------------------------------------------------------
|
||||||
RootTable(vm).Bind(_SC("SqNet"), ns);
|
|
||||||
// --------------------------------------------------------------------------------------------
|
|
||||||
ConstTable(vm).Enum(_SC("SqWsFrameFlags"), Enumeration(vm)
|
ConstTable(vm).Enum(_SC("SqWsFrameFlags"), Enumeration(vm)
|
||||||
.Const(_SC("FIN"), static_cast< SQInteger >(Poco::Net::WebSocket::FRAME_FLAG_FIN))
|
.Const(_SC("FIN"), static_cast< SQInteger >(Poco::Net::WebSocket::FRAME_FLAG_FIN))
|
||||||
.Const(_SC("RSV1"), static_cast< SQInteger >(Poco::Net::WebSocket::FRAME_FLAG_RSV1))
|
.Const(_SC("RSV1"), static_cast< SQInteger >(Poco::Net::WebSocket::FRAME_FLAG_RSV1))
|
||||||
|
Loading…
Reference in New Issue
Block a user