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? Esta mensagem pode conter informação confidencial e/ou privilegiada. Se você não for o destinatário ou a pessoa autorizada a receber esta mensagem, não deverá utilizar, copiar, alterar, divulgar a informação nela contida ou tomar qualquer ação baseada nessas informações. Se você recebeu esta mensagem por engano, por favor avise imediatamente o remetente, respondendo o e-mail e em seguida apague-o. Agradecemos sua cooperação. This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose, change, take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation.
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).
participants (2)
-
Amit Sonawane
-
Igor R