Hi today i was trying to constantly check the connectivity of users while there is a cin..
this is the code:
while (true)
{
if (InternetCheckConnection(networkBuffer, FLAG_ICC_FORCE_CONNECTION, 0) != false)
{
while (cin >> userInput)
{
cout << "> " << userInput << endl;
}
} else {
break;
}
}
I'm sure that the problem is cin but i have to check constantly the users connectivity (also while there is a cin in progress). Is it possible to do such a thing?
Thanks.