Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
any_address::port

Retrieves the port that this object contains.

Synopsis
unsigned short
port() const noexcept;
Preconditions

this->type() == address_type::host_and_port

Exception safety

No-throw guarantee.


PrevUpHomeNext