The Network Library

Get a brief introduction to the network library in C++23.

The network library in C++23 is based on the boost::asio library from Christopher M. Kohlhoff. The library targets the network and low-level I/O programming.

The following components are part of the network library:

  • TCP, UDP, and multicast
  • Client/Server applications
  • Scalability for more concurrent connections
  • IPv4 and IPv6
  • Name resolution (DNS)
  • Clocks

However, the following components are not part of the network library:

  • Implementation of network protocols such as HTTP, SMTP, or FTP
  • Encryption (SSL or TLS)
  • Operating specific multiplexing interfaces, such as select or poll
  • Support for realtime
  • TCP/IP protocols like ICMP

Thanks to the network library, you can directly implement an echo server.

Get hands-on with 1400+ tech skills courses.