I'm attempting to learn boost asio. Starting off with the simple tests first.
This is a snippet of code that writes to a socket, but I keep getting the following exception thrown:
1 2 3
End point declared
Socket Declared
Error: system:111 connect: Connection refused
The code is a simple write, I have tried over a dozen different port numbers, none of which are in use, but the same error persists.
Connection refused means there is nothing listening on that port to accept connections. whatever server you're running on that port isn't actually running on that port.