This is what i was trying to do before i dove into WSAnetwork events
while(true)
{
if(com->Recieve(host,buffer))
{
//read buffer and do something
}
else
cout<<"\rthere";
} so i practically want to keep printing "there" until forever . but when i recieve a buffer over the socket form the client. then i read it and do some other operation.