//do not write:
do
{
//your program
// ...
//wait 100ms
while(pConnection->GetTime()<lasttime+100) ; //Network overflow and high CPU charge
} while(1)
//prefer
do
{
//your program
// ...
//wait 100ms
pConnection->Wait(100); //only one network call, no cpu charge
} while(1)