diff --git a/websocketpp/roles/client_endpoint.hpp b/websocketpp/roles/client_endpoint.hpp index 884b16cbb6..736d554a81 100644 --- a/websocketpp/roles/client_endpoint.hpp +++ b/websocketpp/roles/client_endpoint.hpp @@ -122,6 +122,7 @@ public: // Ask transport to perform a connection transport_type::async_connect( lib::static_pointer_cast(con), + con->get_uri(), lib::bind( &type::handle_connect, this, diff --git a/websocketpp/transport/base/endpoint.hpp b/websocketpp/transport/base/endpoint.hpp index 18bdfa65bb..b5d0da6657 100644 --- a/websocketpp/transport/base/endpoint.hpp +++ b/websocketpp/transport/base/endpoint.hpp @@ -32,6 +32,7 @@ #include #include #include +#include #include diff --git a/websocketpp/transport/iostream/endpoint.hpp b/websocketpp/transport/iostream/endpoint.hpp index 781bb5c183..29ce54af32 100644 --- a/websocketpp/transport/iostream/endpoint.hpp +++ b/websocketpp/transport/iostream/endpoint.hpp @@ -103,9 +103,9 @@ protected: } /// Initiate a new connection - void async_connect(transport_con_ptr tcon, connect_handler callback) { + void async_connect(transport_con_ptr tcon, uri_ptr u, connect_handler cb) { // Do we need to do anything here? - callback(tcon->get_handle(),lib::error_code()); + cb(tcon->get_handle(),lib::error_code()); } void init(transport_con_ptr tcon) {