网络编程示例Network Programming Samples

本节包含可下载的网络编程示例的说明和链接,这些示例使用 System.NetSystem.Net.CacheSystem.Net.ConfigurationSystem.Net.MailSystem.Net.MimeSystem.Net.NetworkInformationSystem.Net.SecuritySystem.Net.Sockets 和相关命名空间中的类。This section contains descriptions and links to downloadable network programming samples that use classes in the System.Net, System.Net.Cache, System.Net.Configuration, System.Net.Mail, System.Net.Mime, System.Net.NetworkInformation, System.Net.Security, System.Net.Sockets, and related namespaces.

备注

所有示例都在 .NET Framework SDK 版本 2.0 示例下载中提供,它针对 .NET Framework 2.0 发布,可能已过期。All samples are available in the .NET Framework SDK version 2.0 Samples Download, which was released for the .NET Framework 2.0 and may be dated.

本节内容In This Section

下载进度指示技术示例Download Progress Indicator Technology Sample
演示如何显示文件的下载进度。Shows how to display the progress of a file download.

FTP 客户端技术示例FTP Client Technology Sample
演示如何向/从 FTP 服务器上传/下载文件。Shows how to upload and download files to and from an FTP server.

HttpListener 技术示例HttpListener Technology Sample
演示如何处理来自应用程序的 HTTP 请求。Shows how to process HTTP requests from within an application.

HttpListener ASPX 主机应用程序示例 HttpListener ASPX Host Application Sample
演示如何使用 System.Net.HttpListener 类的功能创建将调用路由至托管的 ASP.NET 应用程序的 HTTP 服务器。Demonstrates how to use the features of the System.Net.HttpListener class to create an HTTP server that routes calls to a hosted ASP.NET application.

Mailer 技术示例Mailer Technology Sample
演示如何从客户端应用程序发送电子邮件。Shows how to send email messages from a client application.

NetStat 工具技术示例NetStat Tool Technology Sample
演示 NCLNetStat 网络信息工具。Demonstrates the NCLNetStat network information tool.

网络信息技术示例Network Information Technology Sample
演示如何监视和显示网络信息。Shows how to monitor and display network information.

Ping 客户端技术示例Ping Client Technology Sample
演示可以 ping 远程主机的客户端应用程序。Demonstrates a client application that can ping a remote host.

WebClient 技术示例WebClient Technology Sample
演示如何执行常见操作,如上传或下载文件或数据。Demonstrates how to perform common operations, such as the upload or download of files or data.

安全流示例Secure Streams Sample
演示如何使用安全流在客户端和服务器之间进行通信。Shows how to use a secure stream to communicate between a client and a server.

IPv6 套接字示例IPv6 Sockets Sample
演示启用 IPv6 时如何使用套接字。Demonstrates how to use sockets when IPv6 is enabled.

FTP 资源管理器技术示例FTP Explorer Technology Sample
演示如何列出 FTP 服务器的内容。Demonstrates how to list the contents of an FTP server.

参考Reference

System.Net

System.Net.NetworkInformation

请参阅See also