初步修复
This commit is contained in:
parent
8fc4357cc6
commit
e4714f3f0e
46705 changed files with 12004901 additions and 0 deletions
41
Client/NetTest/GameClient.cpp
Normal file
41
Client/NetTest/GameClient.cpp
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
#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 );
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue