socket.io-client-cpp
socket.io-client-cpp copied to clipboard
asio async_connect error: system:111 (Connection refused)
on linux ubuntu 18.04 and windows with BOOST 1.67: I have these errors: [info] asio async_connect error: system:111 (Connection refused) Error getting remote endpoint: system: 107
Help will be appreciated
Thanks
I'm having the same issue. Were you able to fix it?
Currently, no fix :-( socket-io cpp seems no more maintened :(
could we have some help from developpers/mainteners of socketio cpp client ?
Some code helps, but given the error, it's probably a firewall issue?
No firewall installed on my pc. Localhost used. Code available here https://github.com/Nelson-numerical-software/nelson/tree/nelson_sio/modules/sio_client/src/cpp
@Nelson-numerical-software You are passing in an ip. You need to pass in an url like http://localhost
Sorry but i use a complet uri http://localhost:port Please notice that this trouble is present with recent boost version and current master. It seems that current master does not work. An official release could help for packaging(stable version)
I got a working project using master and boost 1.63.0 working on ubuntu 1604, windows and os x. Do the samples work on your system?
Also, you should bind all your functions before you call connect. I see you are waiting for a connection then doing binding. I am pretty sure those calls are not thread safe. Also, your lock/wait/unlock usage is not great. They are probably breaking something.
when the server peer closed, the client peer try to do async_connect , or connect, this error will occur. It is by design.