Network Programming Samples
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.PeerToPeer, System.Net.Security, System.Net.Sockets, and related namespaces.
在本節中
Download Progress Indicator Technology Sample
Shows how to display the progress of a file download.FTP Client Technology Sample
Shows how to upload and download files to and from an FTP server.HttpListener Technology Sample
Shows how to process HTTP requests from within an application.HttpListener ASPX Host Application Sample
Demonstrates how to use the features of the HttpListener class to create an HTTP server that routes calls to a hosted ASP.NET application.Mailer Technology Sample
Shows how to send email messages from a client application.NetStat Tool Technology Sample
Demonstrates the NCLNetStat network information tool.Network Information Technology Sample
Shows how to monitor and display network information.Ping Client Technology Sample
Demonstrates a client application that can ping a remote host.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 Sockets Sample
Demonstrates how to use sockets when IPv6 is enabled.FTP Explorer Technology Sample
Demonstrates how to list the contents of an FTP server.Socket Performance Technology Sample
Shows how to use enhancements in the Socket class to build a server application that uses asynchronous network I/O to achieve the highest performance.PeerToPeer Technology Sample
Shows how to use the new classes in the System.Net.PeerToPeer namespace to register and publish a peer name and then resolve a peer name.
參考
請參閱
概念
Network Programming How-to Topics