You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
auto p = wserver.get_local_endpoint();
std::cout << p.port() << std::endl;
No changes to the library core would be needed. Note: this method was first available in 0.7.0 so the currently bundled 0.6.0 would need to be upgraded first (I would recommend doing so).
I have upgraded to 0.7.0. As explained earlier, I do not want to unbundle, as that leads to dependency hell on OS X and several Linux distributions that do not have websocketpp (or do not have the right version).
Cadabra project bundled websocketpp-0.6.0 with the only difference being an addition of get_acceptor() method: https://github.com/kpeeters/cadabra2/blob/master/client_server/websocketpp/transport/asio/endpoint.hpp
They use it to obtain the endpoint port:
Would you think this is a good patch, and would you integrate it? Or what is the right way to do what cadabra2 is doing?
Thanks!
The text was updated successfully, but these errors were encountered: