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
| Class | Header | Description |
|---|---|---|
TcpClient | System/Net/Sockets/TcpClient.hpp | TCP client socket wrapper |
UdpClient | System/Net/Sockets/UdpClient.hpp | UDP client socket wrapper |
NetworkStream | System/Net/Sockets/NetworkStream.hpp | Stream over a network socket |
Related Types
| Type | Header | Description |
|---|---|---|
IPAddress | System/Net/IPAddress.hpp | IP address (v4/v6) |
IPEndPoint | System/Net/IPEndPoint.hpp | IP address + port |
HttpStatusCode | System/Net/HttpStatusCode.hpp | HTTP status code enum |
WebUtility | System/Net/WebUtility.hpp | URL encode/decode utilities |
TODO
The project's TODO.md lists these network items as pending:
- Full TcpClient implementation
- UdpSocket (higher level than UdpClient)
- Packet abstraction
- NetStream
- NetServer / NetClient