Hi,

 

I am using boost 1.36.0 asio. I have to connect to several ip/ports within my application, asio successfully connects to some ips/ports while it throws an error with code 10022, "An invalid argument was supplied". In my case the ip/ports supplied are on the same ip i.e. same server.

 

Any ideas what I could be doing wrong?