diff --git a/websocketpp/transport/iostream/endpoint.hpp b/websocketpp/transport/iostream/endpoint.hpp index 01a1a83034..952bdcfe96 100644 --- a/websocketpp/transport/iostream/endpoint.hpp +++ b/websocketpp/transport/iostream/endpoint.hpp @@ -31,6 +31,7 @@ #include #include +#include #include #include @@ -100,7 +101,13 @@ protected: m_elog = e; m_alog = a; } - + + /// Initiate a new connection + void async_connect(transport_con_ptr tcon, connect_handler callback) { + // Do we need to do anything here? + callback(tcon->get_handle(),lib::error_code()); + } + void init(transport_con_ptr tcon) { tcon->register_ostream(output_stream); }