Basically I'm writing a little app and am getting a strange error from boost. I havent actually written the server part of the code so I know that I won't get the "Connect Successful" message but I wanted to make sure i would get the "Could not connect to socket, exiting..." message. The code is as follows:
The error code I receive is: "The specified class was not found". Maybe I'm being ignorant but that error isn't even particularly helpful.
EDIT** After block-commenting out the code and then going line by line I only get this error once I reach tcp::resolver::iterator iterator = resolve.resolve(query);. Any help would be much appreciated.
EDIT**** I changed the line tcp::resolver::query query(tcp::v4(), client->getHost(), client->getPort()); to tcp::resolver::query query(tcp::v4(), "127.0.0.1", "10000"); and it ran without the error message! I don't understand why this isn't working; the only thing I can think of is in the constructor documentation it says it is expecting a const std::string - am i only apssing it a std::string by using client->getHost()/getPort() ?
EDIT ****** OH DEAR! I fixed the problem; I was using the wrong argv's for the object constructor :|