4

The C++ committee is currently working on a Networking Technical Specification. I was wondering what were the biggest differences with boost::asio. Moreover, I heard several times that the udp implementation in boost::asio is not as efficient as it could be and I was wondering whether the TS tried to solve this problem.

Community
  • 1
  • 1
Vincent
  • 57,703
  • 61
  • 205
  • 388
  • regarding the UDP performance; there is no way to send multiple UDP packets in a single call. Not in the networking TS nor in POSIX. This can cause bulk transfers over UDP to be significantly slower and more CPU heavy than over TCP. Linux has an API to do this though (sendmmsg()). – Arvid Sep 02 '19 at 11:32

1 Answers1

5

The largest difference is that Networking TS has less stuff: no support for SSL, serial ports, OS signals and other OS-specific things. The TS is still designed to allow users of the library to add these features.

Also, the TSes usually don't delve into implementation details. So you should check with your STL implementation if it has problems you mentioned.

Arvid
  • 10,915
  • 1
  • 32
  • 40
grisumbras
  • 850
  • 2
  • 6
  • 11