Boost logo

Boost Users :

Subject: Re: [Boost-users] Incorrect parameters problem
From: Michael Caisse (boost_at_[hidden])
Date: 2009-10-29 21:10:06


Mathew Benson wrote:
> My project was compiling and executing, but I get an error now. I'm
> not sitting at my desk right now, but I think it said "Incorrect
> parameters" when I examine the error. Here's the offending code:
>
> boost::asio::io_service io_service;
>
> using boost::asio::ip::udp;
>
> udp::socket s(io_service, udp::endpoint(udp::v4(), 0));
>
> udp::resolver resolver(io_service);
> udp::resolver::query query(udp::v4(), "127.0.0.1", 606);
>

udp::resolver::query query(udp::v4(), "127.0.0.1", "606");

Regards -
michael

-- 
----------------------------------
Michael Caisse
Object Modeling Designs
www.objectmodelingdesigns.com

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