MCPcopy Create free account
hub / github.com/boostorg/asio / connect

Method connect

include/boost/asio/basic_socket_streambuf.hpp:189–195  ·  view source on GitHub ↗

Establish a connection. * This function establishes a connection to the specified endpoint. * * @return \c this if a connection was successfully established, a null * pointer otherwise. */

Source from the content-addressed store, hash-verified

187 * pointer otherwise.
188 */
189 basic_socket_streambuf* connect(const endpoint_type& endpoint)
190 {
191 init_buffers();
192 ec_ = boost::system::error_code();
193 this->connect_to_endpoints(&endpoint, &endpoint + 1);
194 return !ec_ ? this : 0;
195 }
196
197 /// Establish a connection.
198 /**

Callers

nothing calls this directly

Calls 3

connect_to_endpointsMethod · 0.95
get_executorMethod · 0.45
resolveMethod · 0.45

Tested by

no test coverage detected