The asio fix is to set work tracking and use poll() instead of run()
Removed some std::move that the compiler flagged for RVO
Made the client's Connect asynchronous, it will also show the addresses it resolved.
Made client's asio variables static, since there can only be one.
Motivation and Context
On OS X, asio was not calling handlers in the client code, result was a brick.
Also got rid of a bunch of warnings, they were bothering me.
How Has This Been Tested?
Run the tests, server, and client on Mac OS X
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
Description
The asio fix is to set work tracking and use
poll()
instead ofrun()
Removed some std::move that the compiler flagged for RVO Made the client's Connect asynchronous, it will also show the addresses it resolved. Made client's asio variables static, since there can only be one.Motivation and Context
On OS X, asio was not calling handlers in the client code, result was a brick. Also got rid of a bunch of warnings, they were bothering me.
How Has This Been Tested?
Run the tests, server, and client on Mac OS X
Types of changes
Checklist: