asio-tr2
asio-tr2 copied to clipboard
Add typedefs to ip namespace for port_type, address_v4 integral type, etc
I'm adding
typedef uint16_least_t port_type;
typedef uint32_least_t address_v4_uint_type;
Names can be reviewed.
Sound good to me.
Applied in 5c04b1d22a8921a4ef0293e13ef3e69d87d80cde.
As part of this change the member function address_v4::to_ulong() has been renamed to to_uint().
Also added scope_id_type.
Pre-Lenexa Summary
In Cologne it was requested that new typedefs be added to the <internet> header. The following typedefs have been added:
typedef uint16_least_t port_type;
typedef uint32_least_t address_v4_uint_type;
typedef uint32_least_t scope_id_type;
As part of this change, the member function address_v4::to_ulong() has been renamed to to_uint().
These names should be reviewed by LEWG. I would also like guidance on whether address_v4_uint_type or address_v4::uint_type is preferred.
The change was included in revision 5. An implementation can be found on the master branch of Asio's GitHub repository.