28 #ifndef WEBSOCKETPP_CLIENT_ENDPOINT_HPP
29 #define WEBSOCKETPP_CLIENT_ENDPOINT_HPP
31 #include <websocketpp/endpoint.hpp>
32 #include <websocketpp/uri.hpp>
34 #include <websocketpp/logger/levels.hpp>
36 #include <websocketpp/common/system_error.hpp>
46 template <
typename config>
90 if (location->get_secure() && !transport_type::is_secure()) {
102 con->set_uri(location);
104 ec = lib::error_code();
120 uri_ptr location = lib::make_shared<uri>(u);
122 if (!location->get_valid()) {
127 return get_connection(location, ec);
145 &
type::handle_connect,
148 lib::placeholders::_1
156 void handle_connect(
connection_ptr con, lib::error_code
const & ec) {
161 "handle_connect error: "+ec.message());
164 "Successful connection");