Files
LGram16 dd97ddec92 Restructure repository to include all source folders
Move git root from Client/ to src/ to track all source code:
- Client: Game client source (moved to Client/Client/)
- Server: Game server source
- GameTools: Development tools
- CryptoSource: Encryption utilities
- database: Database scripts
- Script: Game scripts
- rylCoder_16.02.2008_src: Legacy coder tools
- GMFont, Game: Additional resources

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 20:17:20 +09:00

43 lines
985 B
C++

// ClientSock.cpp : 구현 파일입니다.
//
#include "stdafx.h"
#include <Network/AsyncSock/ClientSock.h>
#include <Network/SingleSession/ClientSingleSession.h>
#include ".\clientsock.h"
// CClientSock
CClientSock::CClientSock( CSingleSession* Instance ) : m_SingleSession( Instance )
{
m_SingleSession = Instance;
}
CClientSock::~CClientSock()
{
}
// CClientSock 멤버 함수입니다.
void CClientSock::OnReceive(int nErrorCode)
{
// TODO: 여기에 특수화된 코드를 추가 및/또는 기본 클래스를 호출합니다.
m_SingleSession->Recv( );
CAsyncSocket::OnReceive(nErrorCode);
}
void CClientSock::OnClose(int nErrorCode)
{
// TODO: 여기에 특수화된 코드를 추가 및/또는 기본 클래스를 호출합니다.
//MessageBox( NULL, "서버와 연결이 끊어졌습니다.", "알림", MB_OK );
m_SingleSession->Disconnected( );
CAsyncSocket::OnClose(nErrorCode);
}
void CClientSock::OnConnect(int nErrorCode)
{
// TODO: 여기에 특수화된 코드를 추가 및/또는 기본 클래스를 호출합니다.
CSocket::OnConnect(nErrorCode);
}