DragonNest/Client/NetTest/GameClient.cpp
2024-12-20 16:56:44 +08:00

41 lines
1.4 KiB
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include "StdAfx.h"
#include "GameClient.h"
#include "GameProtocol.h"
#include "Game_Structure.h"
#include "Game_ReadPacket.h"
#include "Game_WritePacket.h"
CGameClient::CGameClient(void)
{
}
CGameClient::~CGameClient(void)
{
}
void CGameClient::OnIoRead(void)
{
CClientSession::OnIoRead();
/* DWORD dwProtocol, dwPacketLength;
BYTE Packet[ MAX_BUFFER_LENGTH ];
char szIP[ 1024 ];
USHORT nPort;
if( !ReadFromPacket( dwProtocol, szIP, nPort, Packet, dwPacketLength ) )
{
return;
}*/
}
void CGameClient::OnIoConnected(void)
{
}
void CGameClient::OnIoDisconnected(void)
{
}
BOOL CGameClient::Begin( USHORT nRemotePort )
{
return BeginUdp( nRemotePort );
}