.NET Networking APIs

Overview

The .NET Networking namespace provides a rich set of classes for building networked applications. From low‑level socket communication to high‑level HTTP client utilities, developers can create robust, scalable, and secure network solutions.

Featured APIs

HttpClient

Send HTTP requests and receive HTTP responses from a resource identified by a URI.

Socket

Provides a rich set of methods for network communication using sockets.

TcpListener

Simple way to listen for incoming TCP network connections.

UdpClient

Wrapper for UDP network services, simplifying the sending and receiving of datagrams.

WebRequest

Abstract base class for making requests to network resources.

Dns

Provides simple domain name resolution functionality.

NetworkStream

Provides the underlying stream of data for network access.

WebSocket

Full‑duplex communication over a single TCP connection.