Net.Sockets Module

TcpClient, UdpClient, NetworkStream — POSIX-only networking.

⚠ POSIX-only
The System::Net::Sockets namespace currently uses POSIX socket APIs (<sys/socket.h>, <unistd.h>). It works on Linux and macOS. Windows and Emscripten support is a known gap.

Classes

ClassHeaderDescription
TcpClientSystem/Net/Sockets/TcpClient.hppTCP client socket wrapper
UdpClientSystem/Net/Sockets/UdpClient.hppUDP client socket wrapper
NetworkStreamSystem/Net/Sockets/NetworkStream.hppStream over a network socket

Related Types

TypeHeaderDescription
IPAddressSystem/Net/IPAddress.hppIP address (v4/v6)
IPEndPointSystem/Net/IPEndPoint.hppIP address + port
HttpStatusCodeSystem/Net/HttpStatusCode.hppHTTP status code enum
WebUtilitySystem/Net/WebUtility.hppURL encode/decode utilities

TODO

The project's TODO.md lists these network items as pending: