<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>ip::basic_endpoint::basic_endpoint</title> <link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.75.2"> <link rel="home" href="../../../index.html" title="Asio"> <link rel="up" href="../ip__basic_endpoint.html" title="ip::basic_endpoint"> <link rel="prev" href="address/overload2.html" title="ip::basic_endpoint::address (2 of 2 overloads)"> <link rel="next" href="basic_endpoint/overload1.html" title="ip::basic_endpoint::basic_endpoint (1 of 5 overloads)"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="address/overload2.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../ip__basic_endpoint.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="basic_endpoint/overload1.html"><img src="../../../next.png" alt="Next"></a> </div> <div class="section"> <div class="titlepage"><div><div><h4 class="title"> <a name="asio.reference.ip__basic_endpoint.basic_endpoint"></a><a class="link" href="basic_endpoint.html" title="ip::basic_endpoint::basic_endpoint">ip::basic_endpoint::basic_endpoint</a> </h4></div></div></div> <p> <a class="indexterm" name="asio.indexterm.ip__basic_endpoint.basic_endpoint"></a> Default constructor. </p> <pre class="programlisting"><a class="link" href="basic_endpoint/overload1.html" title="ip::basic_endpoint::basic_endpoint (1 of 5 overloads)">basic_endpoint</a>(); <span class="emphasis"><em>» <a class="link" href="basic_endpoint/overload1.html" title="ip::basic_endpoint::basic_endpoint (1 of 5 overloads)">more...</a></em></span> </pre> <p> Construct an endpoint using a port number, specified in the host's byte order. The IP address will be the any address (i.e. INADDR_ANY or in6addr_any). This constructor would typically be used for accepting new connections. </p> <pre class="programlisting"><a class="link" href="basic_endpoint/overload2.html" title="ip::basic_endpoint::basic_endpoint (2 of 5 overloads)">basic_endpoint</a>( const InternetProtocol & internet_protocol, unsigned short port_num); <span class="emphasis"><em>» <a class="link" href="basic_endpoint/overload2.html" title="ip::basic_endpoint::basic_endpoint (2 of 5 overloads)">more...</a></em></span> </pre> <p> Construct an endpoint using a port number and an IP address. This constructor may be used for accepting connections on a specific interface or for making a connection to a remote endpoint. </p> <pre class="programlisting"><a class="link" href="basic_endpoint/overload3.html" title="ip::basic_endpoint::basic_endpoint (3 of 5 overloads)">basic_endpoint</a>( const asio::ip::address & addr, unsigned short port_num); <span class="emphasis"><em>» <a class="link" href="basic_endpoint/overload3.html" title="ip::basic_endpoint::basic_endpoint (3 of 5 overloads)">more...</a></em></span> </pre> <p> Copy constructor. </p> <pre class="programlisting"><a class="link" href="basic_endpoint/overload4.html" title="ip::basic_endpoint::basic_endpoint (4 of 5 overloads)">basic_endpoint</a>( const basic_endpoint & other); <span class="emphasis"><em>» <a class="link" href="basic_endpoint/overload4.html" title="ip::basic_endpoint::basic_endpoint (4 of 5 overloads)">more...</a></em></span> </pre> <p> Move constructor. </p> <pre class="programlisting"><a class="link" href="basic_endpoint/overload5.html" title="ip::basic_endpoint::basic_endpoint (5 of 5 overloads)">basic_endpoint</a>( basic_endpoint && other); <span class="emphasis"><em>» <a class="link" href="basic_endpoint/overload5.html" title="ip::basic_endpoint::basic_endpoint (5 of 5 overloads)">more...</a></em></span> </pre> </div> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M. Kohlhoff<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> </div></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="address/overload2.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../ip__basic_endpoint.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="basic_endpoint/overload1.html"><img src="../../../next.png" alt="Next"></a> </div> </body> </html>