1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 16:57:16 +01:00
SqMod/modules/mg/HTTP.cpp
Sandu Liviu Catalin e1a1ccf979 Update the Mongoose module to work with the modified API.
Separate Mongoose handles into their own source files.
2016-06-03 21:30:05 +03:00

40 lines
1.0 KiB
C++

// ------------------------------------------------------------------------------------------------
#include "HTTP.hpp"
#include "Manager.hpp"
// ------------------------------------------------------------------------------------------------
namespace SqMod {
// ------------------------------------------------------------------------------------------------
SQInteger HTTP::Typename(HSQUIRRELVM vm)
{
static const SQChar name[] = _SC("SqMgHTTP");
sq_pushstring(vm, name, sizeof(name));
return 1;
}
// ------------------------------------------------------------------------------------------------
Int32 HTTP::Cmp(const HTTP & o) const
{
if (m_Handle == o.m_Handle)
{
return 0;
}
else if (m_Handle.HndPtr() > o.m_Handle.HndPtr())
{
return 1;
}
else
{
return -1;
}
}
// ------------------------------------------------------------------------------------------------
// ------------------------------------------------------------------------------------------------
} // Namespace:: SqMod