diff --git a/Stable/SafeUDP/source/MSafeUDP.cpp b/Stable/SafeUDP/source/MSafeUDP.cpp index b4933591..f134d401 100644 --- a/Stable/SafeUDP/source/MSafeUDP.cpp +++ b/Stable/SafeUDP/source/MSafeUDP.cpp @@ -1,3 +1,5 @@ + + #include "stdafx.h" #include "MSafeUDP.h" #include "MBasePacket.h" @@ -12,7 +14,7 @@ #endif -// ¿¡À̽º»ç°¡ ÄÄÆÄÀÏ ÇÒ °æ¿ì¿¡´Â ÀÌ _OLD_SAFEUDP¸¦ È°¼ºÈ­ÇØÁÖ¼¼¿ä - ³²±â·æ(2005/07/26) +// ���̽��簡 ������ �� ��쿡�� �� _OLD_SAFEUDP�� Ȱ��ȭ���ּ��� - �����(2005/07/26) //#define _OLD_SAFEUDP @@ -110,7 +112,7 @@ bool MNetLink::MakeSockAddr(char* pszIP, int nPort, sockaddr_in* pSockAddr) DWORD dwAddr = inet_addr(pszIP); if (dwAddr != INADDR_NONE) { memcpy(&(RemoteAddr.sin_addr), &dwAddr, 4); - } else { // ¿¬°áÇÒ host nameÀ» ÀÔ·ÂÇÑ °æ¿ì + } else { // ������ host name�� �Է��� ��� HOSTENT* pHost = gethostbyname(pszIP); if (pHost == NULL) { // error //#ifdef _DEBUG @@ -120,8 +122,8 @@ bool MNetLink::MakeSockAddr(char* pszIP, int nPort, sockaddr_in* pSockAddr) } memcpy((char FAR *)&(RemoteAddr.sin_addr), pHost->h_addr, pHost->h_length); } - // Socket Error°¡ °¡²û ³­´Ù? - //Gunzd.exeÀÇ 0x7c94b21a¿¡ ù° ¿¹¿Ü°¡ ÀÖ½À´Ï´Ù. 0xC0000005: 0xcdcdcddd À§Ä¡¸¦ ±â·ÏÇÏ´Â µ¿¾È ¾×¼¼½º À§¹ÝÀÌ ¹ß»ýÇß½À´Ï´Ù. + // Socket Error�� ���� ����? + //Gunzd.exe�� 0x7c94b21a�� ù° ���ܰ� �ֽ��ϴ�. 0xC0000005: 0xcdcdcddd ��ġ�� ����ϴ� ���� �׼��� ������ �߻��߽��ϴ�. memcpy(pSockAddr, &RemoteAddr, sizeof(sockaddr_in)); return true; } @@ -233,7 +235,7 @@ bool MNetLink::SetACKWait(MSafePacket* pPacket, DWORD dwPacketSize) MACKWaitItem* pACKWaitItem = new MACKWaitItem; pACKWaitItem->pPacket = pPacket; pACKWaitItem->dwPacketSize = dwPacketSize; - pACKWaitItem->nSendCount = 1; // SendQueue ¿¡ ³Ö¾úÁö¸¸ º¸³Â´Ù°í °¡Á¤ + pACKWaitItem->nSendCount = 1; // SendQueue �� �־����� ���´ٰ� ���� MTime::GetTime(&pACKWaitItem->tvFirstSent); MTime::GetTime(&pACKWaitItem->tvLastSent); m_ACKWaitQueue.push_back(pACKWaitItem); @@ -617,7 +619,7 @@ bool MSocketThread::FlushSend() m_SendList.erase(itor); } #else - // °ÇÁî¿¡¼­´Â SAFE_UDP_FLAG_SAFE_PACKET¸¦ »ç¿ëÇÏÁö ¾Ê´Â´Ù. + // ������� SAFE_UDP_FLAG_SAFE_PACKET�� ������� �ʴ´�. delete pSendItem->pPacket; delete pSendItem; m_SendList.erase(itor);