erload1.h2"></a>
            <span class="phrase"><a name="boost_asio.reference.basic_seq_packet_socket.connect.overload1.example"></a></span><a class="link" href="overload1.html#boost_asio.reference.basic_seq_packet_socket.connect.overload1.example">Example</a>
          </h6>
<pre class="programlisting">boost::asio::ip::tcp::socket socket(io_context);
boost::asio::ip::tcp::endpoint endpoint(
    boost::asio::ip::address::from_string("1.2.3.4"), 12345);
socket.connect(endpoint);
</pre>
</div>
<table xmlns: