asio C++ library

PrevUpHomeNext
ip::basic_endpoint::port (1 of 2 overloads)

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

port_type port() const;

PrevUpHomeNext