#include "listener.h"
#include "stg/scriptexecuter.h"
-#include "stg/locker.h"
#include "stg/common.h"
#include "stg/const.h"
struct iovec iov[2];
char buffer[RS_MAX_PACKET_LEN];
-RS::PACKET_HEADER packetHead;
+STG::RS::PACKET_HEADER packetHead;
iov[0].iov_base = reinterpret_cast<char *>(&packetHead);
iov[0].iov_len = sizeof(packetHead);
//-----------------------------------------------------------------------------
bool LISTENER::GetParams(char * buffer, UserData & data)
{
-RS::PACKET_TAIL packetTail;
+STG::RS::PACKET_TAIL packetTail;
DecryptString(&packetTail, buffer, sizeof(packetTail), &ctxS);
return false;
}
//-----------------------------------------------------------------------------
-bool LISTENER::CheckHeader(const RS::PACKET_HEADER & header) const
+bool LISTENER::CheckHeader(const STG::RS::PACKET_HEADER & header) const
{
if (strncmp(reinterpret_cast<const char*>(header.magic), RS_ID, RS_MAGIC_LEN))
return true;