The System.Net namespace contains classes that allow developers to easily send and receive data using protocols such as HTTP, FTP, SMTP, and POP3. It provides classes for network socket programming, IP address manipulation, and more.

Classes

  • EndPoint Represents a network endpoint as an IP address and a port number.
  • HttpListener Provides a simple, programmable HTTP server that you can use to listen for and respond to incoming HTTP requests.
  • HttpListenerContext Represents an incoming request and the response to be sent back to the client.
  • HttpListenerRequest Represents an incoming client request to the HttpListener.
  • HttpListenerResponse Represents a response to an incoming HttpListener request.
  • IPAddress Represents an Internet Protocol (IP) address.
  • IPEndPoint Represents a network endpoint as an IP address and a port number.
  • NetworkInterface Represents a network interface on the local computer.
  • Socket Provides the Windows Socket API functionality.
  • WebClient Provides easy-to-use methods for sending data to and receiving data from a resource identified by a URI.
  • WebRequest Represents a request to a resource using a specified protocol.
  • WebResponse Represents a response from a resource using a specified protocol.

Enumerations

  • ProtocolType Specifies the protocol types for the Socket class.
  • SocketError Specifies errors that occur during socket operations.

Interfaces

  • IWebProxy Defines the interface for network proxy support.