请问这两句代码是什么意思?
beginTick=GetTickCount();
while(MainForm->SysClientSocket->Active && GetTickCount()-beginTick<200); //怎么会这样写,什么意思?
try
{
pStream = new TWinSocketStream(MainForm->SysClientSocket->Socket, 1000);
try
{
if (pStream->WaitForData(600000))
{
while(pStream->WaitForData(100))
{
Application->ProcessMessages();
if((aLen=pStream->Read(aBuf,smalllen)) == 0)
{
MainForm->SysClientSocket->Close();
break;
}
else
{
aBuf[aLen]=0; //给它赋值0有什么用途?
memcpy(_Buf+pos,aBuf,aLen);
pos+=aLen;
if(pos>=length)
break;
if(length-pos<smalllen) //promise get right byte no more no less
smalllen=length-pos;
}
}
}
else MainForm->SysClientSocket->Close();
}
__finally
{
delete pStream;
}
}
catch(Exception &E)
{
Application->HandleException(this);
}