mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
async_connect requires uri as a parameter now
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user