Boost logo

Boost Users :

Subject: Re: [Boost-users] invalid argument?
From: Igor R (boost.lists_at_[hidden])
Date: 2009-10-20 06:02:43


>
> *try
> {
>
> //for(int i=1;i<8;i++){
> boost::asio::io_service io_service;
> s11n_example::client client(io_service, "localhost", "9999");
> io_service.run();
> sleep(7);
> }
> *

Doesn't your debugger allow you to see what line of your code throws the
exception?
Anyway, try to change "localhost" to "127.0.0.1" - maybe the resolver fails
to resolve it.



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