网络和 Web 服务Networking and web services

以下网络和 Web 服务技术可供通用 Windows 平台 (UWP) 开发人员使用。The following networking and web services technologies are available for Universal Windows Platform (UWP) developers.

主题Topic 说明Description
网络基础知识Networking basics 针对任何支持网络的应用的必做事项。Things you must do for any network-enabled app.
选择哪一种网络技术?Which networking technology? 面向 UWP 开发人员的网络技术概述,以及关于如何选择适合自己应用的技术的建议。An overview of the networking technologies available for a UWP developer, with suggestions on how to choose the technologies that are right for your app.
后台中的网络通信Network communications in the background 要在网络通信不在后台运行的情况下继续网络通信,应用可以使用后台任务以及套接字代理或控制通道触发器。To continue network communication while it's not in the background, an app can use background tasks and either socket broker or control channel triggers.
套接字Sockets 套接字是实现许多网络协议所基于的低级数据传输技术。Sockets are a low-level data transfer technology on top of which many networking protocols are implemented. UWP 为客户端-服务器或对等应用程序提供 TCP 和 UDP 套接字类,无论连接长期存在还是不需要建立连接。UWP offers TCP and UDP socket classes for client-server or peer-to-peer applications, whether connections are long-lived or an established connection is not required.
WebSocketsWebSockets WebSocket 提供了一种机制,用于使用 HTTP 通过 Web 在客户端与服务器之间进行既快捷又安全的双向通信,同时支持 UTF-8 和二进制消息。WebSockets provide a mechanism for fast, secure, two-way communication between a client and a server over the web using HTTP(S), and supporting both UTF-8 and binary messages.
HttpClientHttpClient 依据 HTTP 2.0 和 HTTP 1.1 协议,使用 Windows.Web.Http 命名空间 API 发送和接收信息。Use Windows.Web.Http namespace API to send and receive information using the HTTP 2.0 and HTTP 1.1 protocols.
RSS/Atom 源RSS/Atom feeds 使用综合源检索或创建最新和最热门的 Web 内容,这些源通过 Windows.Web.Syndication 命名空间中的功能根据 RSS 和 Atom 标准生成。Retrieve or create the most current and popular Web content using syndicated feeds generated according to the RSS and Atom standards using features in the Windows.Web.Syndication namespace.
后台传输Background transfers 使用后台传输 API 以便在网络上可靠地复制文件。Use the background transfer API to copy files reliably over the network.