async_connect requires uri as a parameter now

This commit is contained in:
Peter Thorson
2013-03-31 15:11:05 -05:00
parent 4d78ba6daf
commit e7e0c05e9a
3 changed files with 4 additions and 2 deletions

View File

@@ -122,6 +122,7 @@ public:
// Ask transport to perform a connection
transport_type::async_connect(
lib::static_pointer_cast<transport_con_type>(con),
con->get_uri(),
lib::bind(
&type::handle_connect,
this,

View File

@@ -32,6 +32,7 @@
#include <websocketpp/common/connection_hdl.hpp>
#include <websocketpp/common/functional.hpp>
#include <websocketpp/common/system_error.hpp>
#include <websocketpp/uri.hpp>
#include <iostream>

View File

@@ -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) {