Loading...   


std::string command;
		command.assign((const char*)in, len);
		if (command.compare("do_pos_update") == 0){
			printf("Sending ServerOP_WIClientRequest with session %s Command Str %s \n", session->uuid.c_str(), command.c_str());
			/* Test Packet */
			ServerPacket* pack = new ServerPacket(ServerOP_WIClientRequest, sizeof(WI_Client_Request_Struct)+command.length() + 1);
			WI_Client_Request_Struct* WICR = (WI_Client_Request_Struct*)pack->pBuffer;
			strn0cpy(WICR->Client_UUID, session->uuid.c_str(), 64);
			strn0cpy(WICR->JSON_Data, command.c_str(), command.length() + 1);
			worldserver->SendPacket(pack);
			safe_delete(pack);
		}

Raw Paste Data