C++ Logo

std-proposals

Advanced search

Re: [std-proposals] network-to-host, host-to-network

From: Thiago Macieira <thiago_at_[hidden]>
Date: Mon, 15 May 2023 18:43:38 -0700
On Monday, 15 May 2023 04:46:10 PDT Sebastian Wittmeier via Std-Proposals
wrote:
> Also related
>
> https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4249.html
>
> Networking Primitives: std::experimental::network::htonl Considered Harmful

Not to mention that the names are horrible. Can we please spell "network"?

I'd also recommend little endian support too, as there are several network
protocols that have chosen little endian instead of something most computers
don't use (major example: Bluetooth).

I highly recommend the set I created for Qt
https://doc.qt.io/qt-6/qtendian.html#functions

Very recent example of use:
https://codereview.qt-project.org/c/qt/qtbase/+/476570

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DCAI Cloud Engineering

Received on 2023-05-16 01:43:41