SFML community forums

Help => Network => Topic started by: CreaM on June 22, 2014, 08:45:52 pm

Title: Failed to bind listener socket
Post by: CreaM on June 22, 2014, 08:45:52 pm
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.
Title: Re: Failed to bind listener socket
Post by: zsbzsb on June 27, 2014, 03:55:09 am
The reason you haven't gotten any answers is because you did not follow the forum rules. Please post a complete and minimal example (http://en.sfml-dev.org/forums/index.php?topic=5559.msg36368#msg36368) that we can test.