/*
* Author :
* Boris Mikhailenko <stg34@stargazer.dp.ua>
-* Andrey Rakhmanov <andrey_rakhmanov@yahoo.com> - èñïðàâëåíèå äâóõ áàãîâ.
+* Maxim Mamontov <faust@stargazer.dp.ua>
+* Andrey Rakhmanov <andrey_rakhmanov@yahoo.com> - bugfixes.
*/
//---------------------------------------------------------------------------
closesocket(sockr);
#endif
-sockr = socket(AF_INET, SOCK_DGRAM, 0); // Cîêåò ÷åðåç êîòîðûé øëåì è ïðèíèìàåì
+sockr = socket(AF_INET, SOCK_DGRAM, 0);
-struct sockaddr_in localAddrR; // Íàø àäðåñ
+struct sockaddr_in localAddrR;
localAddrR.sin_family = AF_INET;
if (localPort)
isNetPrepared = true;
}
-// Øèôðóåì LoginS
int db = sizeof(HDR_8);
for (int i = 0; i < IA_LOGIN_LEN/8; i++)
{
Blowfish_Encrypt(&ctxHdr, (uint32_t*)(buffer + db + i*8), (uint32_t*)(buffer + db + i*8 + 4));
}
-// Øèôðóåì âñ¸ îñòàëüíîå
db += IA_LOGIN_LEN;
int encLen = (len - sizeof(HDR_8) - IA_LOGIN_LEN)/8;
for (int i = 0; i < encLen; i++)
//---------------------------------------------------------------------------
void IA_CLIENT_PROT::Start()
{
+nonstop = true;
#ifdef WIN32
unsigned long pt;
CreateThread(NULL, 16384, RunW, this, 0, &pt);