#### ip::basic_endpoint::port

Get the port associated with the endpoint. The port number is always in the host's byte order.

    unsigned short port() const;

    void port(
        unsigned short port_num);

| Copyright © 2003 - 2008 Christopher M. Kohlhoff Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)