<commit_before>
#pragma once

#include "Packet.h"
#include "NNCircularBuffer.h"
#include "NNNetworkSystem.h"
#include <iostream>

void TestPacketFunction( NNPacketHeader& header )
{
	TestPacket recvData;
	if ( NNNetworkSystem::GetInstance()->GetRecvBuffer()->Read((char*)&recvData, header.m_Size) )
	{
		std::cout << recvData.m_Char << std::endl;
		std::cout << recvData.m_Float << std::endl;
		std::cout << recvData.m_Int << std::endl;
	}
	else
	{
		std::cout << "exception" << std::endl;
	}
}


void TestChatResultPacketFunction( NNPacketHeader& header )
{
	ChatBroadcastResult recvData;
	if ( NNNetworkSystem::GetInstance()->GetRecvBuffer()->Read((char*)&recvData, header.m_Size) )
	{
		std::cout << recvData.m_Chat << std::endl;
		std::cout << recvData.m_Name << std::endl;
		std::cout << recvData.m_PlayerId << std::endl;
	}
	else
	{
		std::cout << "exception" << std::endl;
	}
}
void TestChatRequestPacketFunction( NNPacketHeader& header )
{
	ChatBroadcastRequest recvData;<commit_msg>서버에서 받지 않는 패킷 - 그에 대한 콜백함수 삭제<commit_after>
#pragma once

#include "Packet.h"
#include "NNCircularBuffer.h"
#include "NNNetworkSystem.h"
#include <iostream>

void TestPacketFunction( NNPacketHeader& header )
{
	TestPacket recvData;
	if ( NNNetworkSystem::GetInstance()->GetRecvBuffer()->Read((char*)&recvData, header.m_Size) )
	{
		std::cout << recvData.m_Char << std::endl;
		std::cout << recvData.m_Float << std::endl;
		std::cout << recvData.m_Int << std::endl;
	}
	else
	{
		std::cout << "exception" << std::endl;
	}
}


void TestChatResultPacketFunction( NNPacketHeader& header )
{
	ChatBroadcastResult recvData;
	if ( NNNetworkSystem::GetInstance()->GetRecvBuffer()->Read((char*)&recvData, header.m_Size) )
	{
		std::cout << recvData.m_Chat << std::endl;
		std::cout << recvData.m_Name << std::endl;
		std::cout << recvData.m_PlayerId << std::endl;
	}
	else
	{
		std::cout << "exception" << std::endl;
	}
}


void TestChatRequestPacketFunction( NNPacketHeader& header )
{
	ChatBroadcastRequest recvData;
{'fraction_non_alphanumeric': 0.1665, 'fraction_numerical': 0.0, 'mean_word_length': 5.582236842105263, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4220843', 'n_tokens_mistral': 780, 'n_tokens_neox': 770, 'n_words': 128}