Boost logo

Boost Users :

From: Stefan Kok (stefan_at_[hidden])
Date: 2007-01-04 00:01:33


Hi Max

This is not a C++ answer but check if there is an instance of your
program running an kill it. Sounds like the program is still running and
it then occupies the port. So next time you run your program the port is
already in use.

Regards
Stefan.

On Wed, 2007-01-03 at 19:09 +0100, Maximilian Szengel wrote:
> Hi list,
>
> I am having problems using asio. When I create a server (or take one
> of the examples from the website), start it and connect to it via
> telnet, then close the server (by closing all sockets, so
> io_service::run returns) and then want to restart the server again, I
> always get: "Address already in use." asio::error exception. I tried
> setting asio::ip::tcp::acceptor::reuse_address(true), but that didn't
> change anything. Any help/hint would be appreciated.
>
> Greetings,
>
> Max
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users

-- 
Stefan Kok <stefan_at_[hidden]>

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net