8 Nov
2008
8 Nov
'08
4:45 p.m.
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?
It's hardly possible to spot the problem, without even knowing how your code looks, but my guess is that some design flaw caused an inappropriate access of some asio object (probably, unsynchronized access from several threads or accessing a destroyed object).