Hi
I read a few topics like this one, but I still dont know solution of my problem:
std::cout<<"LISTENNING - stop(0)\n";
listener.setBlocking(false);
while(true){
if(kbhit()){char stop = getch();
if(stop == '0'){std::cout<<"listtenning stopped, return to main\n";return false;}
}
if (listener.listen(13129) != sf::Socket::Done)
std::cout<<"aborted-er1\n";
if (listener.accept(p_socket[act_socketsCount]) == sf::Socket::Done){act_socketsCount ++;}
if (act_socketsCount == socketsCount){std::cout<<"all users conected\n";return true;}
}
- the point is that when i run the program it starst to write in console Failed to bind listener socket,
but the program works OK (the clients can join normaly)- I just dont want that stuff in console.(or use something like cls...)
thanks for answers.